createCanvas(width, height)
function setup() { createCanvas(400,300); } function draw() { fill(255); ellipse(100, 100, 80, 80); }
function setup() { createCanvas(400,300); } function draw() { fill(255); ellipse(100, 100, width/5, width/5); }
rect(10,10,10,10); // Kommentar
function draw() { fill(255); ellipse(100, 100, width/5, width/5); fill(0); ellipse(100-width/25, 100-width/25, width/25, width/25); ellipse(100+width/25, 100-width/25, width/25, width/25); }
function draw() { fill(255); // Setze Farbe auf weiß ellipse(100, 100, width/5, width/5); // Zeichne Gesicht fill(0); // Setze Farbe auf schwarz ellipse(100-width/25, 100-width/25, width/25, width/25); // Zeichne linkes Auge ellipse(100+width/25, 100-width/25, width/25, width/25); // Zeichne rechtes Auge }