Java examples for 2D Graphics:Color HSB
hsb To Color
//package com.java2s; import java.awt.Color; public class Main { public static void main(String[] argv) throws Exception { float[] hsb = new float[] { 34.45f, 35.45f, 36.67f, 37.78f, 37.0000f, 37.1234f, 67.2344f, 68.34534f, 69.87700f }; System.out.println(hsbToColor(hsb)); }//from ww w.j av a 2 s .c o m /** * */ public static Color hsbToColor(float[] hsb) { return new Color(Color.HSBtoRGB(hsb[0], hsb[1], hsb[2])); } }