Pixelate

Every pixel created using

How to Play

Press (+)/(-) Row to add or delete a row of boxes.

Choose a color.

Click on a box to activate the color, drag the mouse across the boxes to paint.

Click again to turn off the color.

What masterpiece will you make?

Dev Diary

Pixelate was made using HTML, CSS and vanilla JS. The goal of the project was to work further with DOM manipulation and events as well as incorporate more CSS into the project.


Initially there are no boxes on the screen until the user manually adds a row. The even listener on either button causes the JavaScript file to either dynamically create a new row filled with boxes or deletes the row that was created last. Event listeners were also placed on the full table where the rows are appended. When clicked, the JS file is able to change the class of the element that was clicked on. The box now changes color depending on the class name. The CSS file holds a class selector for each color that changes the background of that element to that color.

Wednesday, May 5, 2021

The single project page was updated to include the working tech stack. Game directions and brief description was also added.


Monday, May 3, 2021

Pixelate was added as a project to the site.