plotboilerplate
Version:
A simple javascript plotting boilerplate for 2d stuff.
36 lines (35 loc) • 1.21 kB
TypeScript
/**
* @author Ikaros Kappler
* @date 2018-11-10
* @modified 2020-10-23 Ported to Typescript.
* @modified 2020-10-30 Exporting each color under its name globally.
* @modified 2025-12-08 Replaying self defined colors by official web colors.
* @modified 2026-03-18 Fixing global `WebColors` array.
* @version 1.0.3
**/
import { Color } from "./datastructures/Color";
export declare const Red: Color;
export declare const Pink: Color;
export declare const Purple: Color;
export declare const DeepPurple: Color;
export declare const Indigo: Color;
export declare const Blue: Color;
export declare const LightBlue: Color;
export declare const Cyan: Color;
export declare const Teal: Color;
export declare const Green: Color;
export declare const LightGreen: Color;
/**
* A set of beautiful web colors (I know, beauty is in the eye of the beholder).
*
* I found this color chart with 11 colors and think it is somewhat nice
* https://www.pinterest.com/pin/229965124706497134/
*
* @requires Color
*
*/
export declare const WebColors: Array<Color>;
/**
* A helper function to shuffle the colors into a new order.
*/
export declare const shuffleWebColors: (order: Array<number>) => Color[];