Skip to content

Etch a sketch made with javaScript for The Odin Project

Notifications You must be signed in to change notification settings

ChadKreutzer/js-etch-a-sketch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS-Etch-a-Sketch

This is a Javascript project from The Odin Project. The instructions are:

  1. Create a web page with a 16x16 grid of square divs.
  2. Set up a hover effect so it changes the color of the square when your mouse passes over it, leaving a (pixelated) trail through your grid like a pen would.
  3. Add a button to the top of the screen which will clear the current grid and send the user a popup asking for how many squares per side to make the new grid. Once entered, the new grid should be generated in the same total space as before (e.g. 960px wide) and now you've got a new sketch pad.
  4. (Optional): Instead of just changing the color of your grid from black to white (for example), have each pass through it with the mouse change to a completely random RGB value. Then try having each pass just add another 10% of black to it, so only after 10 passes is the square completely black.

About

Etch a sketch made with javaScript for The Odin Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published