projects/m2-core/src/lib/core/utils/colour.utils.ts
Properties |
|
Methods |
|
| Static RGB_COLOR_PART_REGEX |
Default value : /rgb\((.+)\)/
|
| Static colorToInt | ||||||
colorToInt(color: string)
|
||||||
|
Parameters :
Returns :
number
|
| Static getAlpha | ||||||
getAlpha(rgbOrRgba: string)
|
||||||
|
Parameters :
Returns :
number
|
| Static getUIForm | ||||||
getUIForm(rgbaColor: string)
|
||||||
|
Parameters :
Returns :
string
|
| Static hex8ToRbga | ||||||
hex8ToRbga(hex8: string)
|
||||||
|
Parameters :
Returns :
string
|
| Static hexToInt | ||||||||
hexToInt(hex: string)
|
||||||||
|
Parameters :
Returns :
number
|
| Static intToHex8 | ||||||
intToHex8(int: number)
|
||||||
|
Parameters :
Returns :
string
|
| Static intToRbga | ||||||
intToRbga(int: number)
|
||||||
|
Parameters :
Returns :
string
|
| Static rgbOrRgbaToInt | ||||||
rgbOrRgbaToInt(rgbOrRgba: string)
|
||||||
|
Parameters :
Returns :
number
|