p5.js - shape, color, syntax

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

16 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a function?
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 Wayground
14 questions
Computer Science Discoveries Unit 3 Flashcard #1

Flashcard
•
6th - 8th Grade
10 questions
Unit 3 Post-Project Practice Test

Flashcard
•
7th Grade
16 questions
Unit 3 - Game Lab, Shapes, Var, Sprites (1 - 8)

Flashcard
•
8th Grade
12 questions
Khan Academy JavaScript

Flashcard
•
8th Grade
11 questions
CMU CS Academy Unit 3.2.1 Boolean Expressions

Flashcard
•
9th Grade
14 questions
CMU CS Academy Unit 3.2.1 Boolean Expressions Part 0

Flashcard
•
9th Grade
12 questions
Code.Org: Unit 3, Lessons 3-5 Flashcard

Flashcard
•
8th - 10th Grade
13 questions
🎯 2nd MP Mid Term Flashcard

Flashcard
•
6th - 8th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
16 questions
Clovis Unified Student Use of Technology

Quiz
•
4th - 8th Grade
11 questions
Technology Acceptable Use

Quiz
•
6th - 8th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
15 questions
Student Technology Agreement

Quiz
•
6th - 8th Grade
10 questions
Acceptable Use of Technology

Quiz
•
7th - 8th Grade