P5JS Functions
Across
- 3. Which function draws a rectangle on the canvas?
- 7. What type of code block is reusable and performs a specific task in p5.js?
- 8. What function runs when a key is pressed?
- 10. Which function sets how many frames per second the sketch should run at?
- 12. Which function draws a straight line between two points?
- 13. Which built-in variable stores the horizontal position of the mouse on the canvas?
- 15. Which function runs once at the start of the program?
- 16. What function runs continuously to update the canvas?
Down
- 1. Which function removes the outline from shapes?
- 2. Which function is used to create the drawing area in p5.js?
- 4. Which function removes the fill color for shapes?
- 5. Which built-in variable stores the vertical position of the mouse on the canvas?
- 6. Which function sets the color of the outline for shapes?
- 9. Which function sets the background color of the canvas?
- 10. Which function sets the color used to fill shapes?
- 11. Which function draws an oval shape on the canvas?
- 13. Which function remaps a value from one range to another?
- 14. Which function is used to display text on the canvas?
- 17. What keyword is used to give a value back from a function?