Module 04 - Flow Functions Flashcards
1
Q
This function is called once when the program starts. (HAPPENS ONCE)
A
setup()
2
Q
This function is called repeatedly as the program executes. (FOREVER)
A
draw()
3
Q
What is mouseX & what direction does it change in?
A
The x-coordinate position of the mouse. Changes as the mouse moves horizontally.
4
Q
What is mouseY & what direction does it change in?
A
The y-coordinate position of the mouse. Changes as the mouse moves vertically.
5
Q
What is mousePressed()?
A
When user presses mouse button
6
Q
What is keyPressed?
A
When user presses key
7
Q
What is floor()?
A
Round to the nearest whole number
8
Q
What is textAlign()?
A
Used to set the alignment for displaying text on the canvas