- Joined
- Jan 12, 2008
- Messages
- 1
- Reaction score
- 0
//christmas tree
window.setColor(Color.green);
int[] tCoordinates = {210, 190, 200, 189, 195, 185, 175, 180, 165, 175, 155};
int[] sCoordinates = {230, 210, 210, 195, 195, 185, 195, 195, 210, 210, 230};
window.fillPolygon(tCoordinates, sCoordinates, tCoordinates.length);
Color newColor1 = new Color(88,58,31);
window.setColor(newColor1);
window.fillRect(173, 230, 15, 27);
//christmas tree ornaments
window.setColor(Color.red);
window.fillOval(178, 200, 07, 05);
Color newColor2 = new Color(15,89,4);
window.setColor(newColor2);
window.fillOval(181, 210, 07, 05);
window.setColor(Color.red);
window.fillOval(184, 220, 07, 05);
How do I make the ornaments flicker a different color? (red, green, blue, yellow, etc. [animation]) Using Thread.sleep?
window.setColor(Color.green);
int[] tCoordinates = {210, 190, 200, 189, 195, 185, 175, 180, 165, 175, 155};
int[] sCoordinates = {230, 210, 210, 195, 195, 185, 195, 195, 210, 210, 230};
window.fillPolygon(tCoordinates, sCoordinates, tCoordinates.length);
Color newColor1 = new Color(88,58,31);
window.setColor(newColor1);
window.fillRect(173, 230, 15, 27);
//christmas tree ornaments
window.setColor(Color.red);
window.fillOval(178, 200, 07, 05);
Color newColor2 = new Color(15,89,4);
window.setColor(newColor2);
window.fillOval(181, 210, 07, 05);
window.setColor(Color.red);
window.fillOval(184, 220, 07, 05);
How do I make the ornaments flicker a different color? (red, green, blue, yellow, etc. [animation]) Using Thread.sleep?