The Onist

The Onist


Tags


Creating Mario with a JavaScript Array

With just 10 lines of CSS and a JavaScript array which acts as a color map, see how to create amazing 8-bit art.

Here is a fun little project that I have been playing around with on CodePen.  See below how shockingly simple it is to create pixel art using just about 10 lines each of CSS and JS.

I embedded the code below or view the full source here.

View the full code
Share Post
View Comments