Vidyalelo
HTML · Q42

HTML5

Programming · HTML · question 42

Q42

The ___________ method must add the scaling transformation described by the arguments to the transformation matrix.

A.
scale(x, y)
Answer
B.
translate(x, y)
C.
rotate(angle)
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
HTML5 canvas provides scale(x, y) method which is used to increase or decrease the units in our canvas grid.