Canvas Coordinates and Drawing Shapes Quiz

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

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

Flashcards are hidden until you start studying

More Like This

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

HTML5 Chapter 9 Quiz

RiskFreeRainbowObsidian avatar
RiskFreeRainbowObsidian
HTML5 Canvas Raster Images Essentials
20 questions
Use Quizgecko on...
Browser
Browser