View Single Post
  #1 (permalink)  
Old 01-12-2008, 09:23 PM
angel_eyez angel_eyez is offline
Member
 
Join Date: Jan 2008
Posts: 2
angel_eyez is on a distinguished road
Flicker flicker!
//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?

Last edited by angel_eyez : 01-12-2008 at 09:26 PM.
Reply With Quote
Sponsored Links