Week 4-5: Repetition with Variation Loops, map(), sin() cos(), intro to functions, translate, rotate, scale
Loops, map(), sin() cos(), intro to functions, translate, rotate, scale
push();
rotate(radians(i));
translate(0, radius);
rotate(radians(i*2)); s
cale(map(sin(radians(i*scaleX)), -1, 1, min, max),
map(sin(radians(i*scaleY)), -1, 1, min, max));
drawEllipse(); pop(); translate(0, radius); // move into position for next sine
sines[i] = (sines[i]+(fund+(fund*i*ratio)))%TWO_PI; // update angle based on fundamental