Abstract
Protected
_nativeOptional
isGet/sets the direction of the gradient image.
Static
BLACK0.1
Static
BLUE0.1
Static
CYAN0.1
Static
DARKGRAY0.1
Static
GRAY0.1
Static
GREEN0.1
Static
LIGHTGRAY0.1
Static
MAGENTA0.1
Static
RED0.1
Static
TRANSPARENT0.1
Static
YELLOW0.1
Static
WHITE0.1
Static
GradientProtected
preProtected
createStatic
createCreates a new color with RGB-ARGB or hexadecimal parameters
import Color from '@smartface/native/ui/color';
const myRedColor = Color.create(255, 0, 0);
const myBlueColorWithAlpha = Color.create(100, 0, 0, 255);
const myHEXColor = Color.create("#FFAACC");
0.1
Creates a new color with RGB-ARGB or hexadecimal parameters
import Color from '@smartface/native/ui/color';
const myRedColor = Color.create(255, 0, 0);
const myBlueColorWithAlpha = Color.create(100, 0, 0, 255);
const myHEXColor = Color.create("#FFAACC");
0.1
Creates a new color with RGB-ARGB or hexadecimal parameters
import Color from '@smartface/native/ui/color';
const myRedColor = Color.create(255, 0, 0);
const myBlueColorWithAlpha = Color.create(100, 0, 0, 255);
const myHEXColor = Color.create("#FFAACC");
0.1
Static
createCreates a gradient color that can be assigned to view's backgroundColor. You can specify start-end colors and direction of gradient.
0.1
Static
redStatic
greenStatic
blueStatic
alphaGenerated using TypeDoc
Since
0.1 Color is used to color UI objects and its elements. A Color instance is created by passing RGB-ARGB values or hexadecimal string. There are constant and predefined colors as well.
Example