Module 04 - Flow Functions Flashcards

1
Q

This function is called once when the program starts. (HAPPENS ONCE)

A

setup()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

This function is called repeatedly as the program executes. (FOREVER)

A

draw()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is mousePressed()?

A

When user presses mouse button

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is keyPressed?

A

When user presses key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is floor()?

A

Round to the nearest whole number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is textAlign()?

A

Used to set the alignment for displaying text on the canvas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly