Click to See Complete Forum and Search --> : Need Help with Java graphics..thanks
I need some help in generating different colors.
I'd like to generate 100 different rgb colors. Maybe a method that calls a loop for about 100 iterations and setColors every time it loops.
I'd appreciate any help or suggestions
I need some help in generating different colors.
I'd like to generate 100 different rgb colors. Maybe a method that calls a loop for about 100 iterations and setColors every time it loops.
I'd appreciate your help. This site has come highly recommended .
Don't double post the same question. The threads have been mearged.
Moderator
khalidali63
04-25-2003, 12:57 PM
Here is what I'd recomend..
create random numbers for each Red Green Blue.Use the class Color,here is how it would work
Color WHITE = new Color(255,255,255);
and you can store all color objects in an array..I haven't thought it through for memmory consumption..but its an idea..For further help try
http://forum.java.sun.com/forum.jsp?forum=57