html5 - what is "drawing context" exactly ? what is the role of getcontext() method? -


what getcontext() method , drawing context exactly? why pass string "2d" getcontext() method?

context way choose going canvas.

for moment can use getcontext 2d (2dcanvas) or 3d (webgl).

html5 specification say's getcontext : "returns object exposes api drawing on canvas. first argument specifies desired api. subsequent arguments handled api."

you can find specifications each api there : http://wiki.whatwg.org/wiki/canvascontexts

it know "webgl" correct name api moment, experimental should use "experimental-webgl" start creating webgl content


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -