Methods
Type Params |
Return Type |
Name and description |
|
double |
alpha(Color c) Gets the Alpha component (0-1). |
|
Color |
argb(double a, int r, int g, int b) Creates a new Color object from alpha (0-1),red,green,blue (0-255) values. |
|
int |
blue(Color c) Gets the Blue component (0-255). |
|
float |
brightness(Color c) Gets the Brightness/Lightness component (0-1) of HSL. |
|
Color |
c(String colorStr) Creates a new Color object. |
|
Color |
c(Number num)
|
|
Color |
c(String name, String colorStr) Creates a new Color object with a name. |
|
Color |
c(Color color) Creates a new Color object from a Java Color. |
|
Color |
clr(Number num)
|
|
Color |
clr(String colorStr) Creates a new Color object. |
|
Color |
clr(Color color) Creates a new Color object from a Java Color. |
|
Color |
darken(Color c)
|
|
Color |
desaturate(Color c, float amount) Decrease the saturation of a color in the HSL color space by some amount (0-1). |
|
Color |
fade(Color c, float amount) Sets the opacity of a Color to some amount (0-1). |
|
Color |
fadein(Color c, float amount) Increase the saturation of a color by some amount (0-1). |
|
Color |
fadeout(Color c, float amount) Decrease the saturation of a color by some amount (0-1). |
|
Color |
getAliceBlue()
|
|
Color |
getAntiqueWhite()
|
|
Color |
getAqua()
|
|
Color |
getAquamarine()
|
|
Color |
getAzure()
|
|
Color |
getBeige()
|
|
Color |
getBisque()
|
|
Color |
getBlack()
|
|
Color |
getBlanchedAlmond()
|
|
Color |
getBlue()
|
|
Color |
getBlueViolet()
|
|
Color |
getBrown()
|
|
Color |
getBurlyWood()
|
|
Color |
getCadetBlue()
|
|
Color |
getChartreuse()
|
|
Color |
getChocolate()
|
|
Color |
getCoral()
|
|
Color |
getCornflowerBlue()
|
|
Color |
getCornsilk()
|
|
Color |
getCrimson()
|
|
Color |
getCyan()
|
|
Color |
getDarkBlue()
|
|
Color |
getDarkCyan()
|
|
Color |
getDarkGoldenRod()
|
|
Color |
getDarkGray()
|
|
Color |
getDarkGreen()
|
|
Color |
getDarkGrey()
|
|
Color |
getDarkKhaki()
|
|
Color |
getDarkMagenta()
|
|
Color |
getDarkOliveGreen()
|
|
Color |
getDarkOrchid()
|
|
Color |
getDarkRed()
|
|
Color |
getDarkSalmon()
|
|
Color |
getDarkSeaGreen()
|
|
Color |
getDarkSlateBlue()
|
|
Color |
getDarkSlateGray()
|
|
Color |
getDarkSlateGrey()
|
|
Color |
getDarkTurquoise()
|
|
Color |
getDarkViolet()
|
|
Color |
getDarkorange()
|
|
Color |
getDeepPink()
|
|
Color |
getDeepSkyBlue()
|
|
Color |
getDimGray()
|
|
Color |
getDimGrey()
|
|
Color |
getDodgerBlue()
|
|
Color |
getFireBrick()
|
|
Color |
getFloralWhite()
|
|
Color |
getForestGreen()
|
|
Color |
getFuchsia()
|
|
Color |
getGainsboro()
|
|
Color |
getGhostWhite()
|
|
Color |
getGold()
|
|
Color |
getGoldenRod()
|
|
Color |
getGray()
|
|
Color |
getGreen()
|
|
Color |
getGreenYellow()
|
|
Color |
getGrey()
|
|
Color |
getHoneyDew()
|
|
Color |
getHotPink()
|
|
Color |
getIndianRed()
|
|
Color |
getIndigo()
|
|
Color |
getIvory()
|
|
Color |
getKhaki()
|
|
Color |
getLavender()
|
|
Color |
getLavenderBlush()
|
|
Color |
getLawnGreen()
|
|
Color |
getLemonChiffon()
|
|
Color |
getLightBlue()
|
|
Color |
getLightCoral()
|
|
Color |
getLightCyan()
|
|
Color |
getLightGoldenRodYellow()
|
|
Color |
getLightGray()
|
|
Color |
getLightGreen()
|
|
Color |
getLightGrey()
|
|
Color |
getLightPink()
|
|
Color |
getLightSalmon()
|
|
Color |
getLightSeaGreen()
|
|
Color |
getLightSkyBlue()
|
|
Color |
getLightSlateGray()
|
|
Color |
getLightSlateGrey()
|
|
Color |
getLightSteelBlue()
|
|
Color |
getLightYellow()
|
|
Color |
getLime()
|
|
Color |
getLimeGreen()
|
|
Color |
getLinen()
|
|
Color |
getMagenta()
|
|
Color |
getMaroon()
|
|
Color |
getMediumAquaMarine()
|
|
Color |
getMediumBlue()
|
|
Color |
getMediumOrchid()
|
|
Color |
getMediumPurple()
|
|
Color |
getMediumSeaGreen()
|
|
Color |
getMediumSlateBlue()
|
|
Color |
getMediumSpringGreen()
|
|
Color |
getMediumTurquoise()
|
|
Color |
getMediumVioletRed()
|
|
Color |
getMidnightBlue()
|
|
Color |
getMintCream()
|
|
Color |
getMistyRose()
|
|
Color |
getMoccasin()
|
|
Color |
getNavajoWhite()
|
|
Color |
getNavy()
|
|
Color |
getOldLace()
|
|
Color |
getOlive()
|
|
Color |
getOliveDrab()
|
|
Color |
getOrange()
|
|
Color |
getOrangeRed()
|
|
Color |
getOrchid()
|
|
Color |
getPaleGoldenRod()
|
|
Color |
getPaleGreen()
|
|
Color |
getPaleTurquoise()
|
|
Color |
getPaleVioletRed()
|
|
Color |
getPapayaWhip()
|
|
Color |
getPeachPuff()
|
|
Color |
getPeru()
|
|
Color |
getPink()
|
|
Color |
getPlum()
|
|
Color |
getPowderBlue()
|
|
Color |
getPurple()
|
|
Color |
getRed()
|
|
Color |
getRosyBrown()
|
|
Color |
getRoyalBlue()
|
|
Color |
getSaddleBrown()
|
|
Color |
getSalmon()
|
|
Color |
getSandyBrown()
|
|
Color |
getSeaGreen()
|
|
Color |
getSeaShell()
|
|
Color |
getSienna()
|
|
Color |
getSilver()
|
|
Color |
getSkyBlue()
|
|
Color |
getSlateBlue()
|
|
Color |
getSlateGray()
|
|
Color |
getSlateGrey()
|
|
Color |
getSnow()
|
|
Color |
getSpringGreen()
|
|
Color |
getSteelBlue()
|
|
Color |
getTan()
|
|
Color |
getTeal()
|
|
Color |
getThistle()
|
|
Color |
getTomato()
|
|
Color |
getTurquoise()
|
|
Color |
getViolet()
|
|
Color |
getWheat()
|
|
Color |
getWhite()
|
|
Color |
getWhiteSmoke()
|
|
Color |
getYellow()
|
|
Color |
getYellowGreen()
|
|
Color |
grayscale(Color c) Remove all saturation from a color in the HSL color space; the same as calling desaturate(color, 1). |
|
int |
green(Color c) Gets the Green component (0-255). |
|
Color |
greyscale(Color c) Remove all saturation from a color in the HSL color space; the same as calling desaturate(color, 1). |
|
Color |
hsl(int hue, double saturation, double lightness) Creates an opaque color object from hue (0-360), saturation(0-1), and lightness(0-1) (HSL) values. |
|
Color |
hsla(int hue, double saturation, double lightness, double a) Creates an opaque color object from hue (0-360), saturation(0-1), and lightness(0-1) (HSL) values. |
|
float |
hue(Color c) Gets the Hue component (0-1) of HSL. |
|
Color |
lighten(Color c)
|
|
Color |
mix(Color color1, Color color2, double weight = 0.5d) Mixes two colors. |
|
int |
red(Color c) Gets the Red component (0-255). |
|
Color |
rgb(int r, int g, int b) Creates a new Color object from red,green,blue (0-255) values. |
|
Color |
rgba(int r, int g, int b, double a) Creates a new Color object from red,green,blue (0-255),alpha (0-1) values. |
|
Color |
saturate(Color c, float amount) Increase the saturation of a color in the HSL color space by some amount (0-1). |
|
float |
saturation(Color c) Gets the Saturation component (0-1) of HSL. |
|
Color |
shade(Color c, double weight = 0.5d) Mix color with black with optional weight (defaults to half). |
|
Color |
tint(Color c, double weight = 0.5d) Mix color with white with optional weight (defaults to half). |