three-nebula API
    Preparing search index...

    Class ColorSpan

    Class for storing and interacting with an array of colours.

    Hierarchy (View Summary)

    • Span<string>
      • ColorSpan
    Index
    • Constructs a ColorSpan instance.

      Parameters

      • colors: string | string[]

        A color or array of colors. If the string 'random' is provided, a random color will be returned from getValue.

      Returns ColorSpan

    _center: number | boolean
    _isArray: boolean
    a: number | string[]
    b: number
    colors: string[]
    shouldRandomize: boolean
    type: string