xxxxxxxxxx
var angle, sy, hue;
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
noFill();
strokeWeight(0.2);
angle = 0;
smooth(8);
sy = random(5.0);
sx = random(5.0);
hue = 0;
blendMode(MULTIPLY);
}
function draw() {
colorMode(RGB);
background(255,10);
stroke(20,50);
y = sin(radians(angle)/sy) * 2;
x = cos(radians(angle)/sx);
x1 = x * windowWidth / 4;
x2 = x * windowWidth;
translate(0,height/2);
bezier(0,0,x1,windowHeight * y,x2,-(windowHeight) * y,windowWidth,0);
// ellipse(x1,windowHeight/2 * y,50,50);
// line (0,0,x1,windowHeight/2 * y);
// ellipse(x2 ,-(windowHeight/2),50,50);
// line (windowWidth,0,x2,-(windowHeight/2));
angle++;
}