color To HSB - Java 2D Graphics

Java examples for 2D Graphics:Color HSB

Description

color To HSB

Demo Code


//package com.java2s;
import java.awt.Color;

public class Main {
    /**// ww  w.ja v  a  2s . com
     *
     */
    public static float[] colorToHSB(Color color) {
        return Color.RGBtoHSB(color.getRed(), color.getGreen(),
                color.getBlue(), null);
    }
}

Related Tutorials