EOY- Processing Flashcards

1
Q

what is processing?

A

Processing is a flexible language for learning how to code within the context of the visual arts

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

background();

A

Colour of the window background

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

noStroke();

A

To remove the outline of the shapes

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

text(“ “);

A

writes text

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

fill();

A

fills shape

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

int n = 0;

A

sets up the variable as an int (that is a whole number) with an initial value of zero. With the name ’n’

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

Variables:

A

are a key element of programming. They are used for calculations, for storing values for later use, in decisions and in iteration.

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

rameRate();

A

specifies the number of frames to be displayed every second. For example, the function call frameRate(30) will attempt to refresh 30 times a second.

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

if

A

The if structure allowing the program to choose between two or more blocks of code. It specifies a block of code to execute when the expression in if is false.

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

Mouse position

A

The system variable mouseX or mouseY always contains the current horizontal coordinate of the mouse.

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

functions to know

A

draw(), line(), rect(), mouseClick(), ellipse(), stroke(), noStroke(), fill(), background(), size()

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

Random

A

sets the seed value for random(). By default, random() produces different results each time the program is run. Set the seed range to a number to be returned each time it is run.
random(Start Number,End Number) e.g random(0,5) - will give a random number between 0 and 5.

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