Flicker

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,115
Latest member
JoshuaMoul
Top