Aktionen

Benutzer

Justus: Unterschied zwischen den Versionen

Aus exmediawiki

Justus (Diskussion | Beiträge)
Justus (Diskussion | Beiträge)
Zeile 5: Zeile 5:
break
break


Code:


<iframe src="https://editor.p5js.org/jkfmn/full/-Do64urgx"></iframe>
function setup() {
  createCanvas(400, 400);
  noFill();
 
}
 
function draw() {
  background(220);
 
  rect(width / 2 - 100 / 2, height / 2 - 100 / 2, 100, 100);
  rect(width / 2 - 200 / 2, height / 2 - 250 / 2, 200, 250);
  rect(width / 2 - 150 / 2, height / 2 - 230 / 2, 150, 230);
  rect(width / 2 - 40 / 2, height / 2 - 40 / 2, 40, 40);
  rect(width / 2 - 190 / 2, height / 2 - 260 / 2, 190, 260);
}
 
 
<br>
<br>
<br>
 
https://editor.p5js.org/jkfmn/full/-Do64urgx

Version vom 12. Mai 2025, 14:40 Uhr

120525


break

Code:

function setup() {

 createCanvas(400, 400);
 noFill();
 

}

function draw() {

 background(220);
 rect(width / 2 - 100 / 2, height / 2 - 100 / 2, 100, 100);
 rect(width / 2 - 200 / 2, height / 2 - 250 / 2, 200, 250);
 rect(width / 2 - 150 / 2, height / 2 - 230 / 2, 150, 230);
 rect(width / 2 - 40 / 2, height / 2 - 40 / 2, 40, 40);
 rect(width / 2 - 190 / 2, height / 2 - 260 / 2, 190, 260);

}





https://editor.p5js.org/jkfmn/full/-Do64urgx