public final class DefaultColorFactory extends Object implements ColorFactory
Constructor and Description |
---|
DefaultColorFactory() |
Modifier and Type | Method and Description |
---|---|
Color |
createColor(int red,
int green,
int blue,
float alpha)
Create and return an instance of the color specified by
red ,
green , and blue color components in integer
format and alpha as a float. |
public Color createColor(int red, int green, int blue, float alpha)
ColorFactory
red
,
green
, and blue
color components in integer
format and alpha
as a float.createColor
in interface ColorFactory
red
- red integer color component, must be 0 <= red <= 255
green
- green integer color component, must be 0 <= green <= 255
blue
- blue integer color component, must be 0 <= blue <= 255
alpha
- alpha value, must be 0.0 <= alpha <= 1.0
red
,
green
, and blue
color components in integer
format and alpha
as a floatCopyright (c) 2009-2016 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).