top of page
Search

October first post

  • Writer: Chelsea Yang
    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.

 
 
 

Recent Posts

See All
Interview

While searching for an interviewee who has interest and understanding in the field of computer science and art, I approached Carol Wang...

 
 
 

Comments


Post: Blog2_Post

Citation: Make: Getting Started with p5.js by Lauren McCathy, Casy Reas, and Ben Fry. Copyright 2015 Maker Media, Inc., 978-1-457-18677-6.

©2020 by Chelsea STEAM 10. Proudly created with Wix.com

bottom of page