format und variablen

This commit is contained in:
2023-09-26 12:28:28 +02:00
parent 4d84f83ac5
commit c00b7c1e38
10 changed files with 47 additions and 18 deletions

View File

@@ -0,0 +1,12 @@
void setup() {
size(800, 600);
}
void draw() {
background(0); // Hintergrund schwarz
fill(255, 255, 0);
ellipse(mouseX, mouseY, 190, 190); // Gesicht
arc(mouseX, mouseY+10, 130, 90, radians(0), radians(180)); // Mund
ellipse(mouseX-40, mouseY-30, 40, 40); // Auge links
ellipse(mouseX+40, mouseY-30, 40, 40); // Auge rechts
}