+ 1

What is the meaning of 2d in getContext method?

23rd Oct 2017, 8:42 AM
Abhay Gupta
Abhay Gupta - avatar
2 ответов
+ 5
'2d' stand for 'two dimensions': to get a planar context, say a standard bitmap output context... Others context types could be handled (less often: '2d' is the mostly used), noticely 3dimensionnal 'webgl' types: https://developer.mozilla.org/fr/docs/Web/API/HTMLCanvasElement/getContext
23rd Oct 2017, 1:41 PM
visph
visph - avatar
0
Can we use more dimensions?
25th Oct 2017, 3:43 AM
Abhay Gupta
Abhay Gupta - avatar