Download.csdn.net/source/2804…

One of the most meaningful translation things I’ve done in the last few years, documents can be searched on Baidu Library.

Canvas 2D API specification 1.0 Chinese version has been released, which is believed to be your first choice for learning HTML5 Canvas element API. There are rich examples in it, and all of them have been successfully tested in IE9. I hope you can support me.

Here is the table of contents:

Abstract 2 1 Introduction 2 1.1 Terminology: 2 2 CANVAS interface element definitions 3 2.1 GETCONTEXT() 3 2.2 TODATAURL() 3 3 two-dimensional drawing context 4 3.1 CANVAS state 7 3.2 TRANSFORMATIONS 8 3.3 COMPOSITING 10 3.4 Colors and Styles 12 3.5 Line Styles 16 3.6 SHADOWS 18 3.7 Simple Shapes 18 3.8 Complex Shapes path-Paths 19 3.8.1 Path Initiation function 19 3.8.2 Drawing function 19 3.8.3 Auxiliary methods — Whether the point is in the path 22 3.8.4 MOVETO method 22 3.8.5 LINETO method 22 3.8.6 RECT method 22 3.8.7 Arc 23 3.8.8 Shortest Arc 24 3.8.9 Quadratic and cubic Bezier curves 24 3.9 text 25 3.10 Drawing pictures 26 3.11 Pixel-level operations 27 3.11.1 CreateIMAGEDATA method 28 3.11.2 GETIMAGEDATA method 28 3.11.3 PUTIMAGEDATA method 28 3.11.4 Demo examples 28 3.12 Drawing model 29 4 Reference 29

PDF Document home page:

It can be downloaded from the main website: www.codeex.cn/ or from the CSDN channel: