Single Choice
Easy
QTo obtain the "drawing context" object, which method is used?
ID: #5255
Javascript Graphics and Rendering MCQ
134 views
Question Info
#5255Q ID
EasyDifficulty
Javascript Graphics and Rendering MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
If the context identifier is not supported, the HTMLCanvasElement.getContext() method returns a drawing context on the canvas, otherwise it returns null.
The majority of the Canvas drawing API is defined not on the canvas element itself, but on a "drawing context" object obtained via the canvas's getContext() method.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic