Canvas | Sololearn: Learn to code for FREE!



I don't understand the <canvas> tag What is it? Why getContext('2d') is required? There is another value for getContext()? I tried some different canvas functions and anyone run

7/8/2017 9:35:56 AM


6 Answers

New Answer


Values you can use : 2d, webgl, experinental-webgl ......


2d is for 2D and webgl is for 3D....(The experimental one is for browsers that do not support webgl.....)


Chrome does not support WebGL, which is strange. It doesn't work on my mobile device or desktop.


For me, a lecturer explained it better. A YouTube lecturer. I advice you to go on YouTube and search "HTML canvas tutorial Nodehead". That guy has some great videos on it and I'm sure you'll understand after that.


Ok, thanks ^^


What do everyone?