Exploring p5.js Drawing Properties

Exploring p5.js Drawing Properties

8th Grade

10 Qs

quiz-placeholder

Similar activities

Interactive Art Review: Drawing & Parameter Blocks

Interactive Art Review: Drawing & Parameter Blocks

8th Grade

10 Qs

p5.js Week1 PREtest

p5.js Week1 PREtest

7th - 12th Grade

14 Qs

Event Handling

Event Handling

5th - 12th Grade

10 Qs

JavaScript

JavaScript

7th - 8th Grade

15 Qs

Processing Beginners Quiz

Processing Beginners Quiz

7th - 12th Grade

15 Qs

Processing 01 - MCSHS DIG07/DIG08

Processing 01 - MCSHS DIG07/DIG08

7th - 8th Grade

14 Qs

O que vamos aprender?

O que vamos aprender?

1st Grade - University

11 Qs

JavaScript Quiz | For Beginners

JavaScript Quiz | For Beginners

1st Grade - University

10 Qs

Exploring p5.js Drawing Properties

Exploring p5.js Drawing Properties

Assessment

Quiz

Computers

8th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?