703
edits
No edit summary |
|||
Line 11: | Line 11: | ||
for (int i=0; i < objekt.length; i++) { | for (int i=0; i < objekt.length; i++) { | ||
objekt[i] = new Segmente() | objekt[i] = new Segmente(); //Konstruktor des Objekts | ||
} | } | ||
} | } | ||
Line 212: | Line 193: | ||
Segmente() { | Segmente() { | ||
println("Segmente erstellt!"); | //println("Segmente erstellt!"); | ||
x = random(100,width-100); | |||
y = random(100,height-100); | |||
seg = (int)random(6); | |||
r = 100; | |||
g = 90; // Richtung nach oben | |||
h = (int)random(360); | |||
s = 100; | |||
b = 100; | |||
a = 100; | |||
mouseOver = false; | |||
visible = false; | |||
move = false; | |||
sx = 5; | |||
sy = 5; | |||
} | } | ||
edits