Here you can find the source of hsbToRgB(double hue, double sat, double brightness)
Parameter | Description |
---|---|
hue | a parameter |
sat | a parameter |
brightness | a parameter |
static public int hsbToRgB(double hue, double sat, double brightness)
//package com.java2s; /**//from ww w.j av a2 s. co m * This utility allows JRubyArt users to use the processing.org color method * in their sketches. Includes a method to efficiently convert an array of web * strings to an array of color int, and another to convert an array of color * int to a string that can be used in ruby code (to generate web color array). * Copyright (c) 2015-16 Martin Prout. * This utility is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or (at * your option) any later version. * * Obtain a copy of the license at http://www.gnu.org/licenses/lgpl-2.1.html */ public class Main { /** * * @param hue * @param sat * @param brightness * @return */ static public int hsbToRgB(double hue, double sat, double brightness) { return java.awt.Color.HSBtoRGB((float) hue, (float) sat, (float) brightness); } }