Once you call stroke(), strokeWeight(), or fill() to change the settings for drawing, they will apply to all the rest code unless you change them again explicitly
Method Overloading
The practice to create methods with the same name but different parameters
A builtin Processing method that is called once when a sketch first starts executing
draw()
A builtin Processing method that is called repeatedly by the Java Runtime Environment
Callbacks
Builtin functions that need to be defined by the programmer to be functioning, you define them but don't call them, the callbacks get called by the system in response to some internal or user-initiated events
Worked out example
Shows for loops, simple animation
Transformation
Fundamental part of computer graphics, which has three components: translation, rotation, and scaling
Transformation
Modifying the drawing space rather than each individual visual objects
Shapes drawn directly all use the default origin (the top-left corner of the window) as the reference point
When rotation is applied
The entire drawing space rotates around the default origin
translate(x, y)
Moves the entire drawing space to location (x, y), the top-left corner of the shifted drawing space now represents the new (0, 0)
Drawing shapes at a negative location with top-left-corner negative halves of its width and height places the rect's center at the new (0, 0)
Recipe for rotation
1. translate(centerX, centerY)
2. rotate(angle)
3. draw in rotated coordinates
Translation moves the drawing space to a new location, the new (0, 0) now represents the location that was translated to
Transformations (including translations, rotations & scalings) are cumulative
Saving and restoring drawing space for transformations