>>233
import java.applet.Applet;
import java.awt.*;
public class HSBColorApplet extends Applet {
public void paint(Graphics g) {
int width = getWidth();
int height = getHeight();
float hue, saturation, brightness = 1.0f;
for(int i = 0; i<width; i++) {
hue = (float)i/width;
for (int j = 0; j<height; j++) {
saturation = 1.0f - (float)j/height;
g.setColor(new Color(Color.HSBtoRGB(hue, saturation, brightness)));
g.fillRect(i, j, 1, 1);
}
}
}
}