logo - 刷刷题
下载APP
【单选题】

In canvas, what is used to move coordinate space? ( )

A.
transition
B.
context.transparent
C.
context.translate
D.
context.transform
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】Which of the following statements about canvas is correct? ( )

A.
The maxWidth, the third parameter of fillText() method, is optional.
B.
The fillText() method can draw a text string in the canvas.
C.
When arc() method draws an arc, its last parameter is true or fasle, that is, whether it is clockwise or not, and it cannot be omitted.
D.
The clearRect(width, height, left,top) method is used to clear all the contents in the rectangular area with width=width and height=height and the top left corner at (left, top).

【单选题】Which of the following statements about audio and video attributes is incorrect? ( )

A.
We can use the <audio> tag to import audio files.
B.
When using the <audio> tag, it can be abbreviated as <audio src = "" loop autoplay controls>.
C.
In the <audio> tag, we use src to import audio files.
D.
In the <audio> tag, we must use source to import audio files.

【单选题】Draw a line on canvas, requiring the start coordinate to be (0,0), the end coordinate to be (100,50), and which one is correct for the following three blanks? ( )<canvas id="myCanvas" width="200px...

A.
ctx.moveFrom(0,0)ctx.lineTo(100,50)ctx.stroke()
B.
ctx.lineFrom(0,0)ctx.lineTo(100,50) ctx.stroke()
C.
ctx.moveTo(0,0)ctx.lineTo(100,50)ctx.stroke()
D.
ctx.moveTo(0,0)ctx.lineTo(100,50) ctx.strokeText()

【单选题】Using canvas to draw a graphic, and which option is correct about the following code snippets? ( )ctx.beginPath();ctx.arc(50,170,50,0,Math.PI,false);ctx.stroke();ctx.closePath();

A.
The graphic is a clockwise circle.
B.
The graphic is a counterclockwise circle.
C.
The graphic is a clockwise semicircle.
D.
The graphic is a counterclockwise semicircle.

【单选题】Which of the following statements about svg is incorrect? ( )

A.
Svg can be either a file or a tag.
B.
Svg uses xml format to define graphics.
C.
Svg refers to scalable vector graphics.
D.
The graphics quality of svg will decrease after enlargement.