done renaming
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
void setup() {
|
||||
size(800, 600);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(200);
|
||||
ellipse(frameCount%width, 300, 100, 100);
|
||||
}
|
||||
19
Lektion 1/Arithmetische_Operatoren/Muster/Muster.pde
Normal file
19
Lektion 1/Arithmetische_Operatoren/Muster/Muster.pde
Normal file
@@ -0,0 +1,19 @@
|
||||
void setup() {
|
||||
size(800, 600);
|
||||
}
|
||||
int x = 0;
|
||||
float y = 0;
|
||||
|
||||
void draw() {
|
||||
if (x % 3 == 0) {
|
||||
stroke(0);
|
||||
} else if (x % 3 == 1) {
|
||||
stroke(150);
|
||||
} else {
|
||||
stroke(230);
|
||||
}
|
||||
|
||||
line(x, 0, x, y);
|
||||
x+= 1;
|
||||
y+= 0.5;
|
||||
}
|
||||
20
Lektion 1/Arithmetische_Operatoren/Muster_2/Muster_2.pde
Normal file
20
Lektion 1/Arithmetische_Operatoren/Muster_2/Muster_2.pde
Normal file
@@ -0,0 +1,20 @@
|
||||
void setup() {
|
||||
size(800, 600);
|
||||
}
|
||||
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
|
||||
void draw() {
|
||||
if (x % 3 == 0) {
|
||||
stroke(0);
|
||||
} else if (x % 3 == 1) {
|
||||
stroke(150);
|
||||
} else {
|
||||
stroke(230);
|
||||
}
|
||||
|
||||
line(x, 0, x, y);
|
||||
x+= 1;
|
||||
y+= 1;
|
||||
}
|
||||
14
Lektion 1/Arithmetische_Operatoren/Muster_3/Muster_3.pde
Normal file
14
Lektion 1/Arithmetische_Operatoren/Muster_3/Muster_3.pde
Normal file
@@ -0,0 +1,14 @@
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
|
||||
void setup() {
|
||||
size(800, 600);
|
||||
|
||||
y = height;
|
||||
}
|
||||
|
||||
void draw() {
|
||||
line(x, 0, x, y);
|
||||
x+= 1;
|
||||
y-= 1;
|
||||
}
|
||||
13
Lektion 1/Arithmetische_Operatoren/Muster_4/Muster_4.pde
Normal file
13
Lektion 1/Arithmetische_Operatoren/Muster_4/Muster_4.pde
Normal file
@@ -0,0 +1,13 @@
|
||||
void setup() {
|
||||
size(800, 600);
|
||||
}
|
||||
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
|
||||
void draw() {
|
||||
stroke(x / (width / 255));
|
||||
line(x, 0, x, y);
|
||||
x+= 1;
|
||||
y+= 1;
|
||||
}
|
||||
Reference in New Issue
Block a user