举一反三
- canvas中规定了2D context,不支持3D context (WebGL)。 A: 正确 B: 错误
- 如何获取Canvas的2d绘图环境对象Context?请用自然语言阐述(不要拷贝代码)
- JS 文件通过哪个命令获取canvas对象? A: getWebGLContext(canvas) B: document.getElementById("example") C: canvas.getContext(2d) D: <canvas id="webgl" width="400" height="400"></canvas>
- Context in SFL refers to . A: Context of language B: Context of culture C: Context of society D: Context of situation
- According to Numan, context can be classified into . A: linguistic context and co-text. B: nonlinguistic context and extra-linguistic context. C: situational context and cultural context D: linguistic context and nonlinguistic context.
内容
- 0
canvas中二维绘图环境对象获取的语句是哪项?假设canvas为获取的canvas对象名。 A: var ctx=canvas.getContext("2d"); B: var canvas=document.getElementById("myCanvas"); C: var ctx=canvas.getContext("WebGL"); D: var ctx=canvas.getElementById("2d");
- 1
创建canvas画布使用的方法是()。 A: getContent("3d") B: document.Context("3d") C: getContext("2d") D: document.Context("2d")
- 2
How to narrow the following topic “The Effects of Deforestation on Gorillas in Africa ” A: Geographical context B: Historical context C: Biological context D: Social context
- 3
当用CSS修改canvas的width和height后,canvas的大小发生变化,还会影响绘图环境context的大小。
- 4
平移坐标系到canvas的中心位置,用下列哪个Canvas方法来实现?绘图环境对象为context。 A: context.translate(canvas.width/2,canvas.height/2); B: context.transform(canvas.width/2,canvas.height/2); C: context.transfer(canvas.width/2,canvas.height/2); D: context.translation(canvas.width/2,canvas.height/2);