Module 2 - Drawing Attributes Flashcards

1
Q

What is the name of the function that defines the dimensions of and creates the drawing area?

A

createCanvas

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

How many points does a rect() need & what are the coordinates?

A

4 points & (x, y, w, h)

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

How many points does a square() need & what are the coordinates?

A

3 points & (x, y, s)

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

How many points does a line need & what are the coordinates?

A

4 points & (x1, y1, x2, y2)

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

How many points does a triangle need & what are the coordinates?

A

6 points & (x1, y1, x2, y2, x3, y3)

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

How many points does a quad need & what are the coordinates?

A

8 points & (x1, y1, x2, y2, x3, y3, x4, y4)

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

Based on location, when you move a point horizontally to the left, what happens to the x-value?

A

Increases

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

Based on location, when you move a point vertically down, what happens to the y-value?

A

Increases

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

How many points does a circle need & what are the coordinates?

A

3 points & (x, y, d)

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

How many points does an ellipse need & what are the coordinates?

A

4 points & (x, y, w, h)

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

What is the difference between an ellipse and a circle?

A

Circle function will only call a regular round circle, while you can change the shape of an ellipse using w & h

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

What will happen if loop() is called after noLoop() in the setup() function?

A

The draw function will continue to execute in an endless loop

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

p5.js does not support gradient fills directly; it must be implemented manually

A

True

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

What is CORNERS?

A

Specifies two opposite corners of a rect()

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