@nightgrey/ansi
    Preparing search index...

    Type Alias MaybeColor

    MaybeColor: _MaybeColor | RgbColor | AnsiColor | DefaultColor

    A value that might be able to be interpreted as a color.

    This includes:

    • strings (any notation @this.ng/color supports, so almost any CSS notation)
    • IndexedColor or BasicColor values*
    • arrays (vectors with values from 0 to 1)
    • parsed or typed colors (@thi.ng/color instances)

    Note that native @thi.ng/color treat any numbers as packed integers. Our functions treats numbers from 0 to 255 as ANSI colors.

    If you want to use functionality from @thi.ng with ANSI colors, convert them first by using ansiRgb. This converts them to vectors readable by the @thi.ng universe.

    const hex = `#333`;
    const packed = 2;
    const array = [0.3, 0.3, 0.3];
    const thingInstances = rgb();
    const indexed = IndexedColor.Red;
    const basic = BasicColor.Black;