Jasmina: Unterschied zwischen den Versionen
Aus exmediawiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 42: | Zeile 42: | ||
[[Datei:Bild 11.jpg|mini]] | [[Datei:Bild 11.jpg|mini]] | ||
[[Datei:Bild 12.jpg|mini]] | [[Datei:Bild 12.jpg|mini]] | ||
var c; | |||
let i= 0; | |||
function setup() { | |||
c = createCanvas(windowWidth-20, windowHeight-20); | |||
frameRate(10); | |||
} | |||
function draw() { | |||
background(190); | |||
noStroke(); | |||
i = i + 20; | |||
if (i >= 0.25 * width) { | |||
i = 0; | |||
} | |||
if (! mouseIsPressed) { | |||
fill(255,105,180); | |||
ellipse(90 + 4 * i,50 + 4 * i,80,80); | |||
} | |||
for (let i = 0- 80 ; i < height; i += 20) { | |||
fill(255,105,180); | |||
rect(50 + i, i, width / 2, 10); | |||
fill(255,105,180); | |||
rect(50 + i, i, 10, width / 2); | |||
} | |||
} | |||
Version vom 9. Februar 2021, 11:13 Uhr
-
1.2.21
-
3.2.21
-
3.2.21
-
3.2.21
-
4.2.21
-
4.2.21
-
4.2.21
-
4.2.21
-
9.2.21
-
9.2.21
-
9.2.21
-
9.2.21
-
9.2.21













var c;
let i= 0;
function setup() {
c = createCanvas(windowWidth-20, windowHeight-20); frameRate(10);
}
function draw() {
background(190);
noStroke();
i = i + 20;
if (i >= 0.25 * width) {
i = 0;
}
if (! mouseIsPressed) {
fill(255,105,180);
ellipse(90 + 4 * i,50 + 4 * i,80,80);
}
for (let i = 0- 80 ; i < height; i += 20) {
fill(255,105,180);
rect(50 + i, i, width / 2, 10);
fill(255,105,180);
rect(50 + i, i, 10, width / 2);
}
}