public class CssColor extends FillStrokeStyle
To handle dev mode we must wrap JSO strings in an array. Therefore, when in dev mode, CssColor is actually an array with one element that is the JSO. In Production Mode, this is not needed.
TYPE_CSSCOLOR, TYPE_GRADIENT, TYPE_PATTERN
Modifier | Constructor and Description |
---|---|
protected |
CssColor() |
Modifier and Type | Method and Description |
---|---|
static CssColor |
make(int r,
int g,
int b)
Sets the RGB color value.
|
static CssColor |
make(String cssColor)
Creates a CssColor object.
|
String |
value()
Returns the value of the CssColor, as a String.
|
getType
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final CssColor make(int r, int g, int b)
r
- red, integer between 0 and 255g
- green, integer between 0 and 255b
- blue, integer between 0 and 255CssColor
objectpublic static final CssColor make(String cssColor)
cssColor
- the CSS colorCssColor
objectpublic final String value()
Copyright © 2016. All rights reserved.