Day 8 of 30 days js challenge
Task | Getting Started | Technologies | screenshot
Day 8 of 30 days js challenge. The task is to use JavaScript in order to paint with your mouse on an HTML5 element. Painting with the mouse should work as follows:
- moving the mouse should only result in painting when the pen is on the canvas (i.e., the left mouse button is clicked);
- leaving the canvas with the cursor stops painting (i.e., when leaving and re-entering again while still having the button pressed, no painting happens).
- Fork this repo, and clone to your local machine. Navigate into the folder.
- Open
index.html
in your browser.
- Vanilla Javascript
- HTML
- CSS