Skip to main content Link Search Menu Expand Document (external link)

Color overview

Added in v1.0.0


Table of contents


constructors

black

Signature

export declare const black: Color

Added in v1.0.0

blue

Signature

export declare const blue: Color

Added in v1.0.0

cyan

Signature

export declare const cyan: Color

Added in v1.0.0

green

Signature

export declare const green: Color

Added in v1.0.0

magenta

Signature

export declare const magenta: Color

Added in v1.0.0

red

Signature

export declare const red: Color

Added in v1.0.0

white

Signature

export declare const white: Color

Added in v1.0.0

yellow

Signature

export declare const yellow: Color

Added in v1.0.0

destructors

toCode

Signature

export declare const toCode: (color: Color) => number

Added in v1.0.0

model

Black (interface)

Signature

export interface Black {
  readonly _tag: "Black"
}

Added in v1.0.0

Blue (interface)

Signature

export interface Blue {
  readonly _tag: "Blue"
}

Added in v1.0.0

Color (type alias)

Signature

export type Color = Black | Red | Green | Yellow | Blue | Magenta | Cyan | White

Added in v1.0.0

Cyan (interface)

Signature

export interface Cyan {
  readonly _tag: "Cyan"
}

Added in v1.0.0

Green (interface)

Signature

export interface Green {
  readonly _tag: "Green"
}

Added in v1.0.0

Magenta (interface)

Signature

export interface Magenta {
  readonly _tag: "Magenta"
}

Added in v1.0.0

Red (interface)

Signature

export interface Red {
  readonly _tag: "Red"
}

Added in v1.0.0

White (interface)

Signature

export interface White {
  readonly _tag: "White"
}

Added in v1.0.0

Yellow (interface)

Signature

export interface Yellow {
  readonly _tag: "Yellow"
}

Added in v1.0.0