How to make dynamic color grid with java -
i want make java program create dynamic color grids. want make 10 grids, color grid spaced. , 30, closely spaced. here image : http://i.stack.imgur.com/d2yba.png
and every grid should responsible making event. oh yes, there range of color. 10 t0 100.
i first tried random function. know rgb color range 0 255. tried make random color, 1 color can come again , mess whole things. want unique color grids no repetition. want image.
can me on these!
you might begin looking @ jcolorchooser
, discussed in how use color choosers. 1 easy way produce spectral series of colors uses hsb model; choose hues in range 0 315 constant saturation , brightness. question isn't specific events, here's example of displaying information mouse moves on each color.
Comments
Post a Comment