Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ColorStop

Implements

Index

Constructors

constructor

  • Parameters

    Returns ColorStop

Properties

Readonly color

color: Color

Readonly hint

hint: null | Length

Readonly stop

stop: null | Length

Methods

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

interpolateTo

  • Parameters

    Returns Interpolator<ColorStop>

  • Parameters

    • that: unknown

    Returns null | Interpolator<ColorStop>

toString

  • toString(): string
  • Returns string

withColor

  • Parameters

    Returns ColorStop

withHint

  • Parameters

    Returns ColorStop

withStop

  • Parameters

    Returns ColorStop

Static create

  • Parameters

    Returns ColorStop

Static fromAny

  • Parameters

    Returns ColorStop

Static fromInit

  • Parameters

    Returns ColorStop

Static fromTuple

  • Parameters

    Returns ColorStop

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyColorStop

Static isInit

  • Parameters

    • value: unknown

    Returns value is ColorStopInit

Static isTuple

  • Parameters

    • value: unknown

    Returns value is ColorStopTuple

Static parse

  • Parameters

    • string: string

    Returns ColorStop

Static parseHint

  • Parameters

    • string: string

    Returns ColorStop

Static parseList

  • Parameters

    • string: string

    Returns ColorStop[]

Generated using TypeDoc