Font size
Worksheetsp5.js Week1 PREtest
Total questions: 14
Worksheet time: 8mins
In this image, createCanvas and background are examples of _____.
Parameters
Variables
Functions
gloopity gloop
Numbers inside of the parentheses following the name of the function, which provide information the function needs, are called ________.
Brackets
Ellipses
Variables
Parameters (or Arguments)
In a p5.js canvas, what are the coordinates of the top left corner?
0,0
100,100
-width, -height
It depends on the size of the canvas
What are some shapes we can create (with a single function) in p5.js?
Rectangle
Circle
Dog
Triangle
Hint: line(x1,y1,x2,y2)
What is the height of the following oval (aka ellipse)?
ellipse(70, 120, 150, 180);
70
120
150
180
What is the y coordinate of the following rectangle?
rect(70, 120, 150, 180);
70
120
150
180
Which of the following has the correct function, parameters and syntax for drawing a rectangle?
Rect(x,y,width,height);
rect(x,y,width,height);
rect(width, height, x, y)
rect(x1, x2, y1, y2, width, height);
What function do we use to add color to the INSIDE of a shape in p5.js?
fill();
color();
colorize();
paint();
What function do we use to add color to the OUTLINE of a shape in p5.js?
fill();
stroke();
outline();
line();
Using RGB, colors range from ___ to ___.
0 - 255
0 - 100
50 - 550
0 - 250
