
p5.js - using color & built-in variables

Quiz
•
Computers
•
6th Grade
•
Medium
Kate Maschmeyer
Used 44+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What function do we use to change the color of the *background*?
stroke()
fill()
background()
rect()
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What function do we use to change the color of a shape or text?
strokeWeight()
ellipse()
text()
fill()
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is wrong with this code?
There is no definition of an ellipse in the p5 library.
The arguments for the circle are wrong.
ellipse is spelled wrong so p5 doesn't recognize it.
p5 is just being mean.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following would create a blue fill?
fill(255, 255, 255);
fill(255, 0, 0);
fill(0, 255, 0);
fill(0, 0, 255);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would you need to change to keep the ellipse red, but make the rectangle white?
Nothing. The rectangle will be white because shapes are white by default.
Add fill(0, 0, 0) above the rect() function.
Add fill(255, 255, 255) above the rect() function.
Swap the order of the rect() function and the ellipse() function.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What x and y coordinates would you use to center a circle on a canvas that is 400 by 400 pixels?
(100, 100)
(200, 200)
(300, 300)
(400, 400)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What's wrong with this code?
There is a curly bracket missing after setup()
There is a curly bracket missing after draw()
There are missing semicolons after setup() and draw()
stroke() cannot have an argument of ‘0’
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Java Script

Quiz
•
5th - 7th Grade
10 questions
AV2a - Pensamento Computacional - Explorando o p5.js

Quiz
•
2nd Grade - University
13 questions
🎯 2nd MP Mid Term Quiz

Quiz
•
6th - 8th Grade
10 questions
AV2b - Pensamento Computacional - Explorando o p5.js

Quiz
•
2nd Grade - University
10 questions
Conceptos de Diseño y Desarrollo Web

Quiz
•
6th Grade
10 questions
Variables-G6-W6 test

Quiz
•
6th Grade
15 questions
Unit 3: Interactive Animations and Games - Lessons 3-6

Quiz
•
6th Grade - University
15 questions
Code.org CS Discoveries Lessons 3-7 Review

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Adding and Subtracting Integers

Quiz
•
6th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade