Winter Cardinal UI - v0.457.0 / UtilRgb
• new UtilRgb(): UtilRgb
▸ blend(colorA, colorB, t): number
| Name | Type |
|---|---|
colorA |
number |
colorB |
number |
t |
number |
number
src/main/typescript/wcardinal/ui/util/util-rgb.ts:28
▸ brighten(color, amount): number
| Name | Type |
|---|---|
color |
number |
amount |
number |
number
src/main/typescript/wcardinal/ui/util/util-rgb.ts:46
▸ darken(color, amount): number
| Name | Type |
|---|---|
color |
number |
amount |
number |
number
src/main/typescript/wcardinal/ui/util/util-rgb.ts:54
▸ fromCode(code): null | number
| Name | Type |
|---|---|
code |
string |
null | number
src/main/typescript/wcardinal/ui/util/util-rgb.ts:13
▸ fromRgb(r, g, b): number
| Name | Type |
|---|---|
r |
number |
g |
number |
b |
number |
number
src/main/typescript/wcardinal/ui/util/util-rgb.ts:24
▸ toCode(color): string
| Name | Type |
|---|---|
color |
number |
string
src/main/typescript/wcardinal/ui/util/util-rgb.ts:9
▸ toGrayscale(color): number
Convertes the given color to a grayscale color.
| Name | Type | Description |
|---|---|---|
color |
number |
a color to be converted |
number
a grayscale color
See
https://en.wikipedia.org/wiki/Grayscale
src/main/typescript/wcardinal/ui/util/util-rgb.ts:69
▸ toLuma(color): number
Convertes the given color to a luma in the range [0, 255].
| Name | Type | Description |
|---|---|---|
color |
number |
a color to be converted |
number
a luma in the range [0, 255]
See
https://en.wikipedia.org/wiki/Grayscale