xxxxxxxxxx
59
// la linea
// https://www.google.com/search?q=la+linea&rlz=1C1GCEA_enDK1128DK1128&oq=la+linea&gs_lcrp=EgZjaHJvbWUqCggAEAAY4wIYgAQyCggAEAAY4wIYgAQyBwgBEC4YgAQyBwgCEC4YgAQyBwgDEC4YgAQyBwgEEAAYgAQyBwgFEAAYgAQyBwgGEAAYgAQyBwgHEAAYgAQyBwgIEAAYgAQyBwgJEAAYgATSAQgxMDk4ajBqN6gCALACAA&sourceid=chrome&ie=UTF-8
// https://giphy.com/explore/osvaldo-cavandoli
// https://44.media.tumblr.com/82698a5a0af600bf2ab739fb5b36b862/tumblr_n22j0cOiNH1rjkjhfo1_500.gif
let p = [
1.5 , 8 ,
2.7 , 8 ,
4.7 , 8 ,
4.5 , 5.2 ,
3.3 , 2.8 ,
4.1 , 2.4 ,
4, 2.2 ,
3.25, 2.2 ,
3.75, 2 ,
3, 1.75 ,
3.25 , 1.3,
3.75 , 1.3 ,
4.5 , 1.65,
5.0, 2.2 ,
4.55 , 2.9 ,
4.8 , 2.8 ,
6.1 , 4.6 ,
6.1 , 6.2 ,
6 , 8 ,
7.5 , 8,
12,8
];
let linea;
function setup() {
createCanvas(400,400);
}
function draw() {
background("blue");
linea = p.map( n => n*(30+(8*sin(frameCount/100)**2)) +50);
noFill();
stroke("white");
strokeWeight(4);
beginShape();
curveVertex(linea[0],linea[1]);
for (let i=0;i<linea.length;i+=2){
curveVertex(linea[i],linea[i+1]);
}
curveVertex(linea[linea.length-2],linea[linea.length-1]);
endShape();
noStroke();
fill("white");
text("La Linea",linea[0]-55,linea[1]+3);
}