First page Back Continue Last page Graphics
Built in Functions
We need to tell Processing we want to use functions by first using it's own built in functions
Processing has 2 built in functions to break up the drawing commands into two areas: setup and draw
- setup() :
- called only once when the program is started
- used to define initial settings (screen size, background, etc)
- variables inside cannot be accessed from other functions
- there can be only one setup function