/** * Simple Curves. * * Simple curves are drawn with simple equations. * By using numbers with values between 0 and 1 in * the equations, a series of elegant curves * are created. The numbers are then scaled to fill the screen. */ void setup() { size(200, 200); colorMode(RGB, 100); background(0); noFill(); noLoop(); } void draw() { stroke(40); beginShape(); for(int i=0; i 1) { sa = 1; } return 1-sa; } float squared(float sa) { sa = sa*sa; return sa; }