Home > Web Front-end > H5 Tutorial > HTML5 obtains the drawing environment by calling the getContext() method of the canvas object_html5 tutorial skills

HTML5 obtains the drawing environment by calling the getContext() method of the canvas object_html5 tutorial skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 15:47:26
Original
2067 people have browsed it

The most basic drawing environment we use is drawing in canvas, and the drawing environment is obtained by calling the getContext() method of the canvas object. The getContext() method requires only one parameter: the type of drawing environment. In the game we use a 2D type drawing environment.

Get the canvas drawing environment

Copy the code
The code is as follows:






HTML5
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template