K_COLORS
Variables
K_COLORS
• Const
K_COLORS: Object
A collection of common colors that can be reused.
Note that if you want to further modify these colors, you should copy them first with the
copyColor
function.
The non-standard colors come from: https://htmlcolorcodes.com/color-names/
Type declaration
Name | Type |
---|---|
Black | Readonly <KColor > |
Red | Readonly <KColor > |
Green | Readonly <KColor > |
Blue | Readonly <KColor > |
Yellow | Readonly <KColor > |
Cyan | Readonly <KColor > |
Magenta | Readonly <KColor > |
White | Readonly <KColor > |
Transparent | Readonly <KColor > |
Brown | Readonly <KColor > |
Gray | Readonly <KColor > |
Orange | Readonly <KColor > |
Purple | Readonly <KColor > |