done renaming
This commit is contained in:
12
Lektion 1/Systemvariablen/Mitte/Mitte.pde
Normal file
12
Lektion 1/Systemvariablen/Mitte/Mitte.pde
Normal file
@@ -0,0 +1,12 @@
|
||||
void setup()
|
||||
{
|
||||
size(111, 77);
|
||||
surface.setResizable(true);
|
||||
}
|
||||
void draw()
|
||||
{
|
||||
// Beim übertragen richtige Fenstergröße (111 x 77) in die main (setup) Methode eintragen und surface.setResizable(true) setzen
|
||||
background(40, 40, 40, 256);
|
||||
circle(width/2, height/2,50);
|
||||
|
||||
}
|
||||
23
Lektion 1/Systemvariablen/Zaehler/Zaehler.pde
Normal file
23
Lektion 1/Systemvariablen/Zaehler/Zaehler.pde
Normal file
@@ -0,0 +1,23 @@
|
||||
void setup()
|
||||
{
|
||||
size(800, 600);
|
||||
frameRate(60);
|
||||
}
|
||||
float second;
|
||||
float offset = 0;
|
||||
|
||||
void draw()
|
||||
{
|
||||
background(40, 40, 40, 256);
|
||||
//fill(0,0,0,1);
|
||||
second = constrain(((float) frameCount / (float) frameRate) - offset, 0 , 1000);
|
||||
|
||||
if(mousePressed == true)
|
||||
{
|
||||
offset = second + offset ;
|
||||
}
|
||||
|
||||
println(offset + " " + mousePressed);
|
||||
textSize(50);
|
||||
text(second, width / 2 -50, height/2);
|
||||
}
|
||||
13
Lektion 1/Systemvariablen/Zeichen_Ticker/Zeichen_Ticker.pde
Normal file
13
Lektion 1/Systemvariablen/Zeichen_Ticker/Zeichen_Ticker.pde
Normal file
@@ -0,0 +1,13 @@
|
||||
void setup()
|
||||
{
|
||||
size(800, 600);
|
||||
}
|
||||
|
||||
void draw()
|
||||
{
|
||||
// Clear Background to prevent shadows
|
||||
background(40, 40, 40, 256);
|
||||
|
||||
textSize(50);
|
||||
text(key, width / 2, height / 2);
|
||||
}
|
||||
Reference in New Issue
Block a user