isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
28 lines (27 loc) • 825 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.K_COLORS = void 0;
/**
* 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/
*/
exports.K_COLORS = {
Black: KColor(0, 0, 0, 1),
Red: KColor(1, 0, 0, 1),
Green: KColor(0, 1, 0, 1),
Blue: KColor(0, 0, 1, 1),
Yellow: KColor(1, 1, 0, 1),
Cyan: KColor(0, 1, 1, 1),
Magenta: KColor(1, 0, 1, 1),
White: KColor(1, 1, 1, 1),
Transparent: KColor(0, 0, 0, 0),
Brown: KColor(0.588, 0.294, 0, 1),
Gray: KColor(0.5, 0.5, 0.5, 1),
Orange: KColor(1, 0.647, 0, 1),
Purple: KColor(0.5, 0, 0.5, 1),
};