p5.js - using color & built-in variables

p5.js - using color & built-in variables

6th Grade

10 Qs

quiz-placeholder

Similar activities

pictoblox_lvl_1

pictoblox_lvl_1

2nd Grade - University

10 Qs

Do you know alot about Roblox?

Do you know alot about Roblox?

2nd Grade - University

10 Qs

Logos - Digital Images

Logos - Digital Images

2nd - 10th Grade

10 Qs

Computing figures

Computing figures

4th - 12th Grade

14 Qs

Roman Empire

Roman Empire

6th Grade

10 Qs

G7-Excel 2

G7-Excel 2

6th Grade

10 Qs

concepts and basics of websites gr6 lesson 1.2  tr2

concepts and basics of websites gr6 lesson 1.2 tr2

6th Grade

12 Qs

ICT Unit 4

ICT Unit 4

6th Grade

13 Qs

p5.js - using color & built-in variables

p5.js - using color & built-in variables

Assessment

Quiz

Computers

6th Grade

Practice Problem

Medium

Created by

Kate Maschmeyer

Used 44+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Media Image

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

Media Image

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’

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?