Exam 12: Canvas

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

If you would like your drawn rectangle's border to have a line width equal to the value specified by the lineWidth property, you should call the strokeRect method before the fillRect method.

(True/False)
4.8/5
(35)

Given the following syntax for the arc method, what do x and y represent? <code>context.arc(x, y, radius, start-angle, end-angle, counterclockwise);</code>

(Multiple Choice)
4.9/5
(46)

When assigning colors for canvas shapes, you can use any of the color value formats that are used for CSS.

(True/False)
4.8/5
(39)

After the browser engine assigns a value to the context object's lineWidth property, that line width will be used for all subsequent line drawings until the lineWidth property is reassigned.

(True/False)
4.9/5
(41)

How do you specify the color for the interior of a rectangle?

(Multiple Choice)
4.7/5
(45)

What does the following method call do? context.setTransform(1, 0, 0, 1, 0, 0);

(Essay)
4.8/5
(32)

To rotate around a position different from the coordinate system's origin, you should first call <code>translate</code> to move the origin so it is centered at the position where you want the rotation to take place.

(True/False)
4.8/5
(39)

Given the following syntax for the clearRect method, if you want to clear the entire canvas drawing area, what values are appropriate for the method's third and fourth arguments? Context.clearRect(top-left-x, top-left-y, width, height);

(Multiple Choice)
4.9/5
(35)

Which of the following is the context object property in charge of specifying vertical alignment for text in the canvas drawing area?

(Multiple Choice)
4.8/5
(34)

Given the following syntax for the clearRect method, if you want to clear the entire canvas drawing area, what values are appropriate for the method's first two arguments? Context.clearRect(top-left-x, top-left-y, width, height);

(Multiple Choice)
4.7/5
(39)
Showing 21 - 30 of 30
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)