October first post
- Chelsea Yang
- Nov 4, 2020
- 1 min read
I began exploring the basic features of processing by learning the functions of the structure of a file.
The setup() block only runs once and is used for initialisation. Its code doesn’t need to be looped repeatedly. The draw() block runs repeatedly and is used for animation.
While the default size of a canvas is 100 x 100, it could be customised through the createCanvas() function by stating the desired width and height coordinates in the parenthesis following the setup() block.
I explored the function of adding colors to shapes. The stroke() block changes the outline color to any shade of the RGB, and the fill() block changes the interior color of the shape. Colors of the outline and fill of a shape can also be eliminated through the noStroke() and noFill() function, but they cannot be used together in a file, or else nothing will appear.
Comments