Functions and parameters
Commands such as 'size' 'smooth' and 'ellipse' are called functions. Most of the functions we will use in this course are 'built in' to the default library. Later we'll see that you can add functions to processing by importing new libraries.
The numbers inside the brackets are called parameters. Some functions like smooth have no parameters. You still need to type in the brackets. The numbers in this exercise represent pixels.
size (a, b):
a: the width of your window
b: the height of your window
ellipse (a, b, c, d):
a: horizontal position coordinate
b: vertical position coordinate
c: width
d: height
set width = height to make a circle
NOTE - The origin( 0, 0) is the top left corner of the window. The horizontal or 'x' component counts up going to the right. The vertical or 'y' component counts up going down.
strokeWeight(a):
a: width of line in pixels
CHALLENGE 2
Write a sketch that draws the Olympic symbol.