Shipeng: Unterschied zwischen den Versionen
Aus exmediawiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 12: | Zeile 12: | ||
=== p5.js === | === p5.js === | ||
[[Datei:Black_reck.mp4|2.49MB]] | [[Datei:Black_reck.mp4|2.49MB]] | ||
t = 0; | |||
function setup(){ | |||
createCanvas(600,600); | |||
} | |||
function draw(){ | |||
background(255,80); | |||
t = t + 0.025; | |||
for (x = 0;x < width;x = x + 600){ | |||
for(y = 0;y<height; y = y + 600){ | |||
const myX = x + 20 * tan(t); | |||
const myY = y + 20 * tan(t); | |||
noStroke(); | |||
fill(10); | |||
translate(200,200); | |||
rect(myX,myY,120); | |||
} | |||
} | |||
} | |||
Version vom 23. März 2022, 13:36 Uhr
MATERIALTABLEAU
MATERIALTABLEAU 1
MATERIALTABLEAU 2
MATERIALTABLEAU 3
MATERIALTABLEAU 4
MATERIALTABLEAU 5
MATERIALTABLEAU 6
MATERIALTABLEAU 7
MATERIALTABLEAU 8
p5.js
t = 0;
function setup(){
createCanvas(600,600);
}
function draw(){
background(255,80);
t = t + 0.025;
for (x = 0;x < width;x = x + 600){
for(y = 0;y<height; y = y + 600){
const myX = x + 20 * tan(t);
const myY = y + 20 * tan(t);
noStroke();
fill(10);
translate(200,200);
rect(myX,myY,120);
}
}
}