703
edits
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
Objekt1.mouseOver = false; Objekt2.mouseOver = false; Objekt3.mouseOver = false; | Objekt1.mouseOver = false; Objekt2.mouseOver = false; Objekt3.mouseOver = false; | ||
Objekt1. | Objekt1.visible = false; Objekt2.visible = false; Objekt3.visible = false; | ||
} | } | ||
Line 35: | Line 35: | ||
if (keyPressed == true) { | if (keyPressed == true) { | ||
if (key == '1') { | if (key == '1') { | ||
Objekt1. | Objekt1.visible = true; | ||
} | } | ||
if (key == '2') { | if (key == '2') { | ||
Objekt2. | Objekt2.visible = true; | ||
} | } | ||
if (key == '3') { | if (key == '3') { | ||
Objekt3. | Objekt3.visible = true; | ||
} | } | ||
} | } | ||
if (Objekt1. | if (Objekt1.visible == true) { | ||
Objekt1.maleSegmente(); | Objekt1.maleSegmente(); | ||
} | } | ||
if (Objekt2. | if (Objekt2.visible == true) { | ||
Objekt2.maleSegmente(); | Objekt2.maleSegmente(); | ||
} | } | ||
if (Objekt3. | if (Objekt3.visible == true) { | ||
Objekt3.maleSegmente(); | Objekt3.maleSegmente(); | ||
} | } | ||
Line 169: | Line 169: | ||
boolean mouseOver; //Maus über dem Objekt | boolean mouseOver; //Maus über dem Objekt | ||
boolean | boolean visible; //Objekt sichtbar | ||
int h,s,b; // Farbe HSB | int h,s,b; // Farbe HSB |
edits