p5.js - shape, color, syntax
Flashcard
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

16 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a function?
Back
Lines of code that perform specific tasks
2.
FLASHCARD QUESTION
Front
What is a correct code to create a rectangle in p5.js? Options: rect(40,120,120,40);
Back
rect(40,120,120,40);
3.
FLASHCARD QUESTION
Front
How do I create a rectangle located 50px to the right and 80px down on the canvas?
Back
rect(50,80,100,40);
4.
FLASHCARD QUESTION
Front
What function do we use to add color to a shape in p5.js?
Back
fill();
5.
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);
6.
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');
7.
FLASHCARD QUESTION
Front
What, if anything, is the difference between function setup () and function draw()?
Back
Function setup runs once and function draw is a loop.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
pythagorean theorem
Flashcard
•
8th Grade
15 questions
Pythagorean Theorem Exit Ticket
Flashcard
•
8th Grade
15 questions
8th - December 16th Classwork
Flashcard
•
8th Grade
15 questions
Verb to be - PRESENT TENSE
Flashcard
•
KG
11 questions
Angle of Elevation and Depression
Flashcard
•
9th Grade
15 questions
WMS Pre-algebra Final Review
Flashcard
•
8th - 9th Grade
15 questions
Circles and Composite Figures
Flashcard
•
7th - 8th Grade
12 questions
7B.2 - Spanish Preterite Tense: -car and -gar Verbs
Flashcard
•
8th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade