Exploring p5.js Drawing Properties

Exploring p5.js Drawing Properties

8th Grade

10 Qs

quiz-placeholder

Similar activities

Variables and ifs in p5.js

Variables and ifs in p5.js

8th Grade

10 Qs

Website Development

Website Development

6th - 12th Grade

14 Qs

CodeHS Unit 7 JavaScript in HTML

CodeHS Unit 7 JavaScript in HTML

3rd - 10th Grade

10 Qs

Webpage Maker: Setting up and Understanding HTML skeleton

Webpage Maker: Setting up and Understanding HTML skeleton

6th - 8th Grade

12 Qs

Flash 8

Flash 8

7th - 12th Grade

15 Qs

Year 8 - Illustrator - L4

Year 8 - Illustrator - L4

7th - 9th Grade

15 Qs

MOAC Excel 2016 Lesson 05

MOAC Excel 2016 Lesson 05

8th - 12th Grade

14 Qs

AV2b - Pensamento Computacional - Explorando o p5.js

AV2b - Pensamento Computacional - Explorando o p5.js

2nd 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?