Can you use canvas.getContext('3d')? If yes, how?

11684 picture 11684 · Mar 21, 2012 · Viewed 60.4k times · Source

I read about the canvas tag in HTML5, and always saw getContext('2d').
The parameter is '2d', so isn't there another possibility like '3d'?
And, how could you use that? I tried 3D before, but didn't really understand (due to a non-explaining tutorial). Any Tutorials?

Answer

Denis Washington picture Denis Washington · Mar 21, 2012

There is a 3D context for canvas, but it is not called "3d", but WebGL ("webgl").