Aktionen

Benutzer

Jasmina: Unterschied zwischen den Versionen

Aus exmediawiki

Jasmina (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Jasmina (Diskussion | Beiträge)
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



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);
 }

}