• 1. 
    What are some shapes we can create (with a single function) in p5.js?

  • Rectangle
  • Circle
  • Triangle
  • All Of above
  • 2. 
    What function do we use to add color to the OUTLINE of a shape in p5.js?

  • fill();
  • stroke();
  • outline();
  • line();
  • 3. 
    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)
  • 4. 
    What is the y coordinate of the following rectangle?rect(70, 120, 150, 180);

  • 70
  • 120
  • 150
  • 180
  • 5. 
    What is the height of the following oval (aka ellipse)?ellipse(70, 120, 150, 180);

  • 70
  • 120
  • 150
  • 180
  • 6. 
    What function do we use to add color to the INSIDE of a shape in p5.js?

  • fill();
  • color();
  • colorize();
  • paint();
  • 7. 
    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
  • 8. 
    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);
  • 9. 
    In this image, createCanvas and background are examples of _____.

  • Parameters
  • Variables
  • Functions
  • gloopity gloop
Report Question
warning
access_time
  Time