HTML5 Canvas Online Brush Drawing tool (i) function introduction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.