Java Color Brighten hsbToRgB(double hue, double sat, double brightness)

Here you can find the source of hsbToRgB(double hue, double sat, double brightness)

Description

hsb To Rg B

License

Open Source License

Parameter

Parameter Description
hue a parameter
sat a parameter
brightness a parameter

Declaration

static public int hsbToRgB(double hue, double sat, double brightness) 

Method Source Code

//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);
    }
}

Related

  1. getBrightness(java.awt.Color color)
  2. getGradientBrightColors(Color baseColor, float step, float max)
  3. getRandomBrightColor()
  4. getSlightlyBrighter(Color color)
  5. getSlightlyBrighter(Color color)
  6. HSBtoRGB(float hue, float saturation, float brightness)
  7. HSBtoRGB(float parHue, float parSaturation, float parBrightness)
  8. increaseBrightness(Image image)
  9. makeColorBrighter(Color color)