https://editor.p5js.org/SuperiorCrane1/sketches/PAQXEnm-u
let normalCover = false;
let yoff = 0.0;
let bootX = 200;
function setup() {
createCanvas(400, 400);
colorMode(HSB)
bootX = random(25, 275);
wolkY = random(75, 200)
wolkY2 = random(50, 175)
}
function draw() {
if(normalCover === false) {
background(188, 90, 100);
stroke(44, 100, 100)
strokeWeight(10)
line(75, 75, 105, 105) //sun
stroke(44, 100, 100)
strokeWeight(10)
line(35, 95, 40, 130) //sun
stroke(44, 100, 100)
strokeWeight(10)
line(95, 30, 140, 40) //sun
fill(44, 100, 100)
ellipse(30, 30, 90) //sun
noStroke()
fill(231, 0, 100); //white
beginShape();
ellipse(200,wolkY2-30,60,50);
ellipse(230,wolkY2-40,60,50);
ellipse(280,wolkY2-30,60,50);
ellipse(220,wolkY2-10,60,50);
ellipse(260,wolkY2-15,60,50); //cloud
ellipse(360,wolkY-30,60,50);
ellipse(390,wolkY-40,60,50);
ellipse(440,wolkY-30,60,50);
ellipse(380,wolkY-10,60,50);
ellipse(420,wolkY-15,60,50); //cloud
let xoff = 0;
for (let x = 0; x <= width; x += 10) {
let y = map(noise(xoff, yoff), 0, 1.1, mouseY +140, mouseY); //min en max
vertex(x, y);
xoff += 0.03;
}
yoff += 0.00001;
vertex(width, height);
vertex(0, height);
endShape(CLOSE);
fill(231, 60, 100); //blue 1
beginShape();
for (let x = 0; x <= width; x += 10) {
let y = map(noise(xoff, yoff), 0, 1.1, mouseY +200,mouseY); //min en max
vertex(x, y);
xoff += 0.03;
}
yoff += 0.00001;
vertex(width, height);
vertex(0, height);
endShape(CLOSE);
fill(18, 50, 50)
stroke(1)
strokeWeight(1)
quad(bootX, 285, bootX+80, 285, bootX+95, 260, bootX-20, 260) // bak
stroke(1)
strokeWeight(1)
quad(bootX-25, 260, bootX+100, 260, bootX+102, 250, bootX-30, 250) //plank
noStroke()
fill(231, 60, 80); //Blue 2
beginShape();
for (let x = 0; x <= width; x += 10) {
let y = map(noise(xoff, yoff), 0, 1.1, 260, 300);
vertex(x, y);
xoff += 0.03;
}
yoff += 0.001;
vertex(width, height);
vertex(0, height);
endShape(CLOSE);
fill(231, 67, 50);
beginShape();
for (let x = 0; x <= width; x += 10) {
let y = map(noise(xoff, yoff), 0, 1.1, 400, 250); //min en max
vertex(x, y);
xoff += 0.03;
}
yoff += 0.009;
vertex(width, height);
vertex(0, height);
endShape(CLOSE);
fill(18, 50, 50)
stroke(1)
strokeWeight(1)
quad(bootX+30, 250, bootX+40, 250, bootX+40, 160, bootX+30, 160) // mast
fill(255)
stroke(1)
strokeWeight(2)
triangle(bootX+45, 165, bootX+55, 245, bootX+95, 235) //zeil 2
fill(255)
stroke(1)
strokeWeight(2)
triangle(bootX+25, 165, bootX+20, 245, bootX-20, 225) //zeil 1
fill(0)
textSize(50)
textFont('Freestyle Script')
text('Fight song', 125, 100)
} else if (normalCover === true) {
background(1, 100, 100);
stroke(40, 80, 100)
strokeWeight(10)
line(75, 75, 105, 105)
stroke(40, 80, 100)
strokeWeight(10)
line(35, 95, 40, 130)
stroke(40, 80, 100)
strokeWeight(10)
line(95, 30, 140, 40)
fill(1, 100, 100)
ellipse(30, 30, 90)
noStroke()
fill(1, 20, 20); //white
beginShape();
ellipse(200,50,60,50);
ellipse(230,40,60,50);
ellipse(280,50,60,50);
ellipse(220,70,60,50);
ellipse(260,65,60,50);
ellipse(360,110,60,50);
ellipse(390,100,60,50);
ellipse(440,110,60,50);
ellipse(380,130,60,50);
ellipse(420,125,60,50);
ellipse(220, 0, 120, 120)
ellipse(295, 70, 130, 100)
ellipse(355, 5, 170, 170) //Big cloud
fill(40, 100, 100); //blue 1
beginShape();
let xoff = 0;
for (let x = 0; x <= width; x += 10) {
let y = map(noise(xoff, yoff), 0, 1.1, mouseY +140, mouseY); //min en max
vertex(x, y);
xoff += 0.03;
}
yoff += 0.00001;
vertex(width, height);
vertex(0, height);
endShape(CLOSE);
fill(25, 100, 100); //blue 1
beginShape();
for (let x = 0; x <= width; x += 10) {
let y = map(noise(xoff, yoff), 0, 1.1, mouseY +200,mouseY); //min en max
vertex(x, y);
xoff += 0.03;
}
yoff += 0.00001;
vertex(width, height);
vertex(0, height);
endShape(CLOSE);
fill(1, 100, 60)
stroke(1)
strokeWeight(1)
quad(bootX, 285, bootX+80, 285, bootX+95, 260, bootX-20, 260) // bak
stroke(1)
strokeWeight(1)
quad(bootX-25, 260, bootX+100, 260, bootX+102, 250, bootX-30, 250) //plank
noStroke()
fill(15, 100, 100); //Blue 2
beginShape();
for (let x = 0; x <= width; x += 10) {
let y = map(noise(xoff, yoff), 0, 1.1, 260, 300);
vertex(x, y);
xoff += 0.03;
}
yoff += 0.001;
vertex(width, height);
vertex(0, height);
endShape(CLOSE);
fill(1, 100, 100);
beginShape();
for (let x = 0; x <= width; x += 10) {
let y = map(noise(xoff, yoff), 0, 1.1, 400, 250); //min en max
vertex(x, y);
xoff += 0.03;
}
yoff += 0.009;
vertex(width, height);
vertex(0, height);
endShape(CLOSE);
fill(1, 100, 60)
stroke(1)
strokeWeight(1)
quad(bootX+30, 250, bootX+40, 250, bootX+40, 160, bootX+30, 160) // paal
fill(0)
stroke(1)
strokeWeight(2)
triangle(bootX+45, 165, bootX+55, 245, bootX+95, 235) //zeil 2
fill(0)
stroke(1)
strokeWeight(2)
triangle(bootX+25, 165, bootX+20, 245, bootX-20, 225) //zeil 1
fill(0)
textSize(50)
textFont('Freestyle Script')
text('Fight song', 125, 100)
}
}
function mousePressed() {
clear();
normalCover =!normalCover;
}