Skip to main content

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

NameType
BlackReadonly<KColor>
RedReadonly<KColor>
GreenReadonly<KColor>
BlueReadonly<KColor>
YellowReadonly<KColor>
CyanReadonly<KColor>
MagentaReadonly<KColor>
WhiteReadonly<KColor>
TransparentReadonly<KColor>
BrownReadonly<KColor>
GrayReadonly<KColor>
OrangeReadonly<KColor>
PurpleReadonly<KColor>

Defined in

packages/isaacscript-common/src/objects/kColors.ts:10