What happens when the following code executes?
<code>ctx.strokeRect(0, 0, 250, 40) ;</code>
A) The JavaScript engine draws the interior of a rectangle whose center is centered in the canvas drawing area.
B) The JavaScript engine draws the interior of a rectangle whose top-left corner is centered in the canvas drawing area.
C) The JavaScript engine draws the border of a 250 x 40 pixel rectangle whose center is centered in the canvas drawing area.
D) The JavaScript engine draws the border of a 250 x 40 pixel rectangle whose top-left corner is at the top-left corner of the canvas drawing area.
Correct Answer:
Verified
Q7: The _ object represents the canvas element's
Q8: Given the following syntax for the arc
Q9: What does the following method call do?
context.setTransform(1,
Q10: If you translate a graphics object, you'll
Q11: How do you specify the color for
Q13: Given the following syntax for the arc
Q14: Suppose you have created an arc by
Q15: In calling the context object's <code>rotate</code> method,
Q16: A problem with Flash is that it
Q17: To rotate around a position different from
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents