Color Class
Declaration
export class Color
constructor(colorValue)
Declaration
constructor(
colorValue: number
)
Parameters
Name |
Type |
colorValue |
number |
Properties
A Property
Declaration
readonly A: any
Property Value
B Property
Declaration
readonly B: any
Property Value
css Property
Declaration
readonly css: string
Property Value
G Property
Declaration
readonly G: any
Property Value
R Property
Declaration
readonly R: any
Property Value
Methods
blend(blendColor, opacity) Method
Declaration
blend(
blendColor: any,
opacity: any
): Color
Parameters
Name |
Type |
blendColor |
any |
opacity |
any |
Returns
contrastColor(baseColor) Method
Declaration
static contrastColor(
baseColor: Color
): Color
Parameters
Name |
Type |
baseColor |
Color |
Returns
fromAppearance(appearanceType) Method
Declaration
static fromAppearance(
appearanceType: string
): Color
Parameters
Name |
Type |
appearanceType |
string |
Returns
fromArgb(alpha, red, green, blue) Method
Declaration
static fromArgb(
alpha: number,
red: number,
green: number,
blue: number
): Color
Parameters
Name |
Type |
alpha |
number |
red |
number |
green |
number |
blue |
number |
Returns
fromDxColor(dxColor) Method
Declaration
static fromDxColor(
dxColor: any
): Color
Parameters
Returns
fromJSON(jsonValue) Method
Declaration
static fromJSON(
jsonValue: string
): Color
Parameters
Name |
Type |
jsonValue |
string |
Returns
fromRgbaString(rgbaColor) Method
Declaration
static fromRgbaString(
rgbaColor: string
): Color
Parameters
Name |
Type |
rgbaColor |
string |
Returns
toHex Method
Declaration
toHex(): any
Returns
toHex(colorValue) Method
Declaration
static toHex(
colorValue: number
): string
Parameters
Name |
Type |
colorValue |
number |
Returns
toJSON(color) Method
Declaration
static toJSON(
color: Color
): number
Parameters
Returns
toNumber Method
Declaration
toNumber(): number
Returns
toNumber(alpha, red, green, blue) Method
Declaration
static toNumber(
alpha: number,
red: number,
green: number,
blue: number
): number
Parameters
Name |
Type |
alpha |
number |
red |
number |
green |
number |
blue |
number |
Returns