Planning Structure: Functions:
Plan structure of functions for Positive and Negative Regions
Define Global Variables
Define global variables to determine size range for pattern
Define global variable balancePoint - can be animated for more interest
Define Positive, Negative Custom Shape Functions
Define custom Shape functions:
Creates a single shape using len, c1
posCustomShape( float len, color c1)
negCustomShape( float len, color c1)
Define Positive, Negative RecursivePattern Functions
Define recursive functions: Creates a set of nested shapes - gradient in size, brightness
Include Logic to determine changing brightness, changing size for each layered shape.
posRecursivePattern( float len, color c1, color c2)
negRecursivePattern( float len, color c1, color c2)
Define Positive, Negative Pattern Functions
Define functions: Creates 1 pattern - at current mouse position, Gradients in color and size across the positive region
positivePattern( float balancePoint, int mX )
negativePattern( float balancePoint, int mX)
Example Code
Planning Document
Last updated
Was this helpful?