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, let us all can 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
650) this.width=650; "style=" margin:0px;padding:0px;border:0px; "src=" http://images.cnitblog.com/blog/724998/ 201502/261207311118555.jpg "/>
Open the effect of saving a picture
650) this.width=650; "style=" margin:0px;padding:0px;border:0px; "src=" http://images.cnitblog.com/blog/724998/ 201502/261207498302071.jpg "/>
Online Demo Address
This article is from the "Work Word Head" blog, please make sure to keep this source http://gongzt.blog.51cto.com/9932391/1616335
HTML5 Canvas Online brush Drawing Tool (i) Introduction