
Exploring p5.js Drawing Properties

Quiz
•
Computers
•
8th Grade
•
Hard
Basma AlGhanim
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Posture and Technique Review

Quiz
•
3rd - 8th Grade
10 questions
ГолодныеИгры

Quiz
•
8th Grade
15 questions
Spreadsheets

Quiz
•
1st - 12th Grade
12 questions
Google Sheets basics

Quiz
•
6th - 8th Grade
10 questions
Excel If function WSC 4.2.3

Quiz
•
7th Grade - University
8 questions
Web Development Basics

Quiz
•
8th Grade
11 questions
O que vamos aprender?

Quiz
•
1st Grade - University
14 questions
Processing 01 - MCSHS DIG07/DIG08

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade