Canvas Coordinates and Drawing Shapes Quiz
5 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which type of shape is drawn first when using the canvas?

  • Shapes with a dashed border
  • Shapes with a green border
  • Shapes with a fill (correct)
  • Shapes with a border

What is the default fill color for shapes drawn on the canvas?

  • Green
  • None
  • Undefined
  • Black (correct)

How can you draw a rectangle with a green border?

  • Rect(left, top, width, height, border='black')
  • Rect(left, top, width, height, fill=None)
  • Rect(left, top, width, height, border='green') (correct)
  • Rect(left, top, width, height, fill='green')

What is the default border width for shapes drawn on the canvas?

<p>2 (B)</p> Signup and view all the answers

How can you draw a rectangle with a dashed green border?

<p>Rect(left, top, width, height, border='green', dashes=True) (A)</p> Signup and view all the answers

More Like This

HTML5
10 questions

HTML5

ProductiveNephrite avatar
ProductiveNephrite
HTML5 Canvas: Styling Shapes and Lines
11 questions
HTML5 Chapter 9 Quiz
16 questions

HTML5 Chapter 9 Quiz

RiskFreeRainbowObsidian avatar
RiskFreeRainbowObsidian
Use Quizgecko on...
Browser
Browser