
Exploring p5.js Drawing Properties
Authored by Basma AlGhanim
Computers
8th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to set the background color in p5.js?
fillBackground()
setBackground()
background()
colorBackground()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a rectangle in p5.js?
Call the rectangle(x, y) method to draw a rectangle.
Create a rectangle using the shape() function.
Use the rect(x, y, width, height) function in p5.js to create a rectangle.
Use the drawRect(x, y, width, height) function.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What property controls the stroke color of shapes in p5.js?
noStroke()
background()
stroke()
fill()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to draw an ellipse in p5.js?
drawEllipse()
shape()
circle()
ellipse()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'fill()' function in p5.js?
To set the fill color for shapes in p5.js.
To change the stroke color for shapes in p5.js.
To create a new shape in p5.js.
To clear the canvas in p5.js.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you change the size of the canvas in p5.js?
Use the 'resizeCanvas(width, height)' function.
Adjust the canvas size using CSS styles.
Use the 'setCanvasSize(width, height)' function.
Change the canvas size in the HTML file directly.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'noStroke()' function do in p5.js?
The 'noStroke()' function changes the color of the stroke in p5.js.
The 'noStroke()' function only affects text rendering in p5.js.
The 'noStroke()' function disables the stroke for shapes in p5.js.
The 'noStroke()' function adds a border to shapes in p5.js.
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
12 questions
Python
Quiz
•
7th - 9th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
9 questions
Napewno tego nie wiesz! - VIKI GABOR
Quiz
•
1st - 10th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
9 questions
Microbit Features Activity
Quiz
•
6th - 8th Grade
10 questions
DBMS- CLASS8 CBSE
Quiz
•
7th - 10th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Anime
Quiz
•
KG - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade