I am studying the sample code from the last answer on this post
to see how to make a good flashing button. That sample code use the following code to specify the colors:
for (int i = 0; i < N; i++)
{
clut.add(Color.getHSBColor(1, 1 - (i / N), 1));
}
for (int i = 0; i < N; i++)
{
clut.add(Color.getHSBColor(1, i / N, 1));
}
Color.getHSBColor(1, 1 - (i / N), 1) is the place building the colors. The first parameter (Hue) of the getHSBColor() will specify the base color. So if I change it to 230, the colors should be blue based colors; if it is 60, the colors should be yellow based. But the sample program doesn't work as I expected. There is no flashing color changes after I set the Hue to different value. Anybody knows why?