Color
Defined in: util/color.ts:1
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Color(
props):Color
Defined in: util/color.ts:8
Parameters
Section titled “Parameters”{ rgb: string; } | { irgb: number; } | { bgr: string; } | { ibgr: number; } | { isTransparent: boolean; }
Returns
Section titled “Returns”Color
Methods
Section titled “Methods”getBgr()
Section titled “getBgr()”getBgr():
string
Defined in: util/color.ts:67
Returns
Section titled “Returns”string
getIbgr()
Section titled “getIbgr()”getIbgr():
number
Defined in: util/color.ts:93
Returns
Section titled “Returns”number
getIrgb()
Section titled “getIrgb()”getIrgb():
number
Defined in: util/color.ts:77
Returns
Section titled “Returns”number
getRgb()
Section titled “getRgb()”getRgb():
string
Defined in: util/color.ts:51
Returns
Section titled “Returns”string
isTransparent()
Section titled “isTransparent()”isTransparent():
boolean
Defined in: util/color.ts:119
Returns
Section titled “Returns”boolean
fromBGRInt()
Section titled “fromBGRInt()”
staticfromBGRInt(ibgr):Color
Defined in: util/color.ts:43
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Color
fromBGRString()
Section titled “fromBGRString()”
staticfromBGRString(bgr):Color
Defined in: util/color.ts:39
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Color
fromRGBInt()
Section titled “fromRGBInt()”
staticfromRGBInt(irgb):Color
Defined in: util/color.ts:35
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Color
fromRGBString()
Section titled “fromRGBString()”
staticfromRGBString(rgb):Color
Defined in: util/color.ts:31
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Color
fromTransparent()
Section titled “fromTransparent()”
staticfromTransparent():Color
Defined in: util/color.ts:47
Returns
Section titled “Returns”Color