Use the newest vesion of the JavaScript library.
Modify this program to make a drawing app! The first thing you will need to do is change the code on line 4 to mouseDragMethod(onTap);
. This will make it so the function onTap
is called when you drag your finger or mouse across the canvas, instead of when you click or tap the screen.
Now you have an app where you can drag your finger to draw pictures!
If you have time, you can add other features such as:
- Change the color. For an added challenge, give the user an option to pick which color they would like to use
- Change the size of your circle. For a challenge, make the size of the circle change as the user is drawing.
- Instead of drawing a circle, draw another shape. You can also layer shapes on top of each other for a cool effect!
The Docs tab is a great place to look if you aren’t sure how to do something. Have fun with it!
After you are finished, share your app with your family and friends.
Upload an image
Upload from your computer
Or paste a link here
Slides and Notes
No slides available for this video
About
JavaScript Graphics (no console)