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
Post a Comment