Canvas | Sololearn: Learn to code for FREE!

0

Canvas

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

Andrés04_ve

6 Answers

New Answer

+17

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

+15

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

+4

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

+2

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.

0

Ok, thanks ^^

0

What do everyone?