Skip to main content

COLORS

Variables

COLORS

Const 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<Color>
RedReadonly<Color>
GreenReadonly<Color>
BlueReadonly<Color>
YellowReadonly<Color>
CyanReadonly<Color>
MagentaReadonly<Color>
WhiteReadonly<Color>
BrownReadonly<Color>
GrayReadonly<Color>
OrangeReadonly<Color>
PurpleReadonly<Color>

Defined in

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