
Exploring JavaScript Canvas Art

Flashcard
•
Computers
•
9th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which method is used to draw a rectangle on a canvas in JavaScript? Options: `drawRect()`, `rect()`, `createRect()`, `rectDraw()`
Back
`rect()`
2.
FLASHCARD QUESTION
Front
What is the correct method to clear a specific rectangular area on a canvas?
Back
`clearRect()`
3.
FLASHCARD QUESTION
Front
Which method is used to draw a circle on a canvas? Options: `drawCircle()`, `arc()`, `circle()`, `ellipse()`
Back
`arc()`
4.
FLASHCARD QUESTION
Front
To animate a shape on a canvas, which function is commonly used to repeatedly call a function you create so that your drawing updates? Options: `setInterval()`, `requestAnimationFrame()`, `setTimeout()`, `animate()`
Back
`setInterval()`
5.
FLASHCARD QUESTION
Front
What is the purpose of the `beginPath()` method in canvas drawing?
Back
To start a new path
6.
FLASHCARD QUESTION
Front
Which property is used to set the color of a shape in canvas? Options: `fillColor`, `strokeColor`, `fillStyle`, `outlineColor`
Back
`fillStyle`
7.
FLASHCARD QUESTION
Front
Which method is used to fill a shape with color on a canvas? Options: `fill()`, `color()`, `paint()`, `shade()`
Back
`fill()`
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
CSS - Backgrounds

Flashcard
•
9th Grade
9 questions
Graphic Programming Basics Flashcard

Flashcard
•
9th Grade
12 questions
Khan Academy JavaScript

Flashcard
•
8th Grade
16 questions
p5.js - shape, color, syntax

Flashcard
•
8th Grade
10 questions
CMU Python Intro Flashcard

Flashcard
•
9th - 12th Grade
10 questions
CMU CS Academy Unit 2 Part 3 Mouse Release Events

Flashcard
•
9th Grade
14 questions
CMU CS Academy Unit 3.2.1 Boolean Expressions Part 0

Flashcard
•
9th Grade
5 questions
p5.js activity

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade