What is a function?
p5.js - shape, color, syntax

Flashcard
•
Computers
•
8th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

16 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Lines of code that perform specific tasks
2.
FLASHCARD QUESTION
Front
What is a correct code to create a rectangle in p5.js? Options: rect(40,120,120,40);
Back
rect(40,120,120,40);
3.
FLASHCARD QUESTION
Front
How do I create a rectangle located 50px to the right and 80px down on the canvas?
Back
rect(50,80,100,40);
4.
FLASHCARD QUESTION
Front
What function do we use to add color to a shape in p5.js?
Back
fill();
5.
FLASHCARD QUESTION
Front
Which code makes an ellipse measuring 140px width and 100px height? Options: ellipse(175, 130, 100, 140);, circle(175, 130, 140, 100);, ellip(175, 130, 140, 100);, ellipse(175, 130, 140, 100);
Back
ellipse(175, 130, 140, 100);
6.
FLASHCARD QUESTION
Front
Which code sets the canvas' color to "pink" in p5.js? Options: background-color('pink');, background('pink');, bg('pink');, bg-color('pink');
Back
background('pink');
7.
FLASHCARD QUESTION
Front
What, if anything, is the difference between function setup () and function draw()?
Back
Function setup runs once and function draw is a loop.
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
CMU CS Academy Unit 1 Checkpoint

Flashcard
•
6th - 8th Grade
15 questions
Code.org Unit 3 Lesson 3 and 4

Flashcard
•
6th - 8th Grade
12 questions
Exploring JavaScript Canvas Art

Flashcard
•
9th Grade
16 questions
Drawing in Code.org

Flashcard
•
7th - 8th Grade
18 questions
7.QZ - P5 JS Colors & Shapes Review

Flashcard
•
9th Grade
16 questions
JavaScript

Flashcard
•
7th - 8th Grade
10 questions
Unit 3- Lesson 3 & 4 Game Lab Vocab

Flashcard
•
6th - 8th Grade
11 questions
javascript - khan academy

Flashcard
•
6th - 8th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade