P5.js Drawing Commands

Quiz
•
Computers
•
10th Grade
•
Medium
Mr. Kedwell
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to draw a line?
line(x1, y1, x2, y2);
draw the line(x1, y1, x2, y2);
line(x1, y1);
linear(x1, y1, x2, y2);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to draw a rectangle?
rect(x, y, width, height);
rectangle(x, y, width, height);
rect(x1, y1, x2, y2);
rectangle(x1, y1, x2, y2);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to change the colour to draw with?
stroke(0, 100, 0);
changeTheColor();
stroke(x1, y1);
textColor(1, 2, 2);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to change the colour the program fills in solid shapes?
fill(0, 255, 255);
changeBackground();
solid(255, 0, 255);
Color(30, 2, 2);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to draw a square?
square(x, y, width, height);
square(x, y, length);
square(x1, y1, x2, y2, x3, y3, x4, y4);
drawSquare(x1, y1, width);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to draw a circle?
circle(x, y, radius);
circle(x, y, diameter);
circle(x, y);
drawOval(x, y, diameter);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to draw an oval?
ellipse(x, y, width, height);
ellipse(x, y, diameter);
ellipse(x, y);
ellipse(x, y, width, height, depth);
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Podstawy programowania JS Processing

Quiz
•
10th Grade - University
10 questions
Avaliação 1T - JavaScript

Quiz
•
9th - 12th Grade
11 questions
O que vamos aprender?

Quiz
•
1st Grade - University
20 questions
Game Lab Basics

Quiz
•
9th - 12th Grade
16 questions
Excel Module 9 Review

Quiz
•
10th Grade
10 questions
Unit 1 Quiz

Quiz
•
10th Grade
18 questions
CMU Graphics Rectangles etc

Quiz
•
9th - 12th Grade
13 questions
Rational Exponents

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade