What is a correct code to create a rectangle in p5.js? Options: rect(40,120,120,40);
p5.js activity

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

5 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
rect(40,120,120,40);
2.
FLASHCARD QUESTION
Front
How do I create a rectangle located 50px to the right and 80px down on the canvas? Options: rect(40,100,80,50);, rect(100,40,50,80);, rect(80,50,100,40);, rect(50,80,100,40);
Back
rect(50,80,100,40);
3.
FLASHCARD QUESTION
Front
What function do we use to add color to a shape in p5.js?
Back
fill();
4.
FLASHCARD QUESTION
Front
Which code makes an ellipse measuring 140px width and 100px height? Options: ellipse(175, 130, 100, 140);, circle(175, 130, 140, 100);, ellip(175, 130, 140, 100);, ellipse(175, 130, 140, 100);
Back
ellipse(175, 130, 140, 100);
5.
FLASHCARD QUESTION
Front
Which code sets the canvas' color to "pink" in p5.js? Options: background-color('pink');, background('pink');, bg('pink');, bg-color('pink');
Back
background('pink');
Similar Resources on Quizizz
2 questions
W6.3

Flashcard
•
KG - University
10 questions
colors ]

Flashcard
•
KG
10 questions
Punnett squares review

Flashcard
•
9th - 12th Grade
10 questions
Box Plots

Flashcard
•
9th - 12th Grade
8 questions
Percent Change Practice

Flashcard
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions

Flashcard
•
9th - 12th Grade
6 questions
М3У2

Flashcard
•
KG - University
5 questions
JavaScript Canvas Review 2

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University