HTML5 Canvas Online Brush Drawing tool (i) function introduction
This is the first program that I wrote with JavaScript, in the process of writing a lot of detours, so after writing to share out, give me the same as beginners as a reference for learning, while writing this program I also encountered some problems, here I will also put forward to you to discuss, So that we can all get progress. Because it is a beginner JavaScript, so the level is low, we welcome the criticism.
The program contains the following 1, the toolbar 2, the basic drawing commands, currently only have lines, rectangles, circles, and later will add some command 3, Linetype selection
4, color selection 5, save the Figure 6, open the graphics.
Here is my son's work, please praise one, thank you
Open the effect of saving a picture
Online Demo Address
HTML5 Canvas Online Brush Drawing tool (i)