Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LinearGradient

Hierarchy

  • LinearGradient

Implements

Index

Constructors

constructor

Properties

Readonly angle

Readonly stops

stops: readonly ColorStop[]

Readonly stringValue

stringValue: undefined | string

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<LinearGradient>

  • Parameters

    • that: unknown

    Returns null | Interpolator<LinearGradient>

toString

  • toString(): string
  • Returns string

withAngle

withStops

  • Parameters

    Returns LinearGradient

Static create

Static fromAny

Static fromInit

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyLinearGradient

Static isInit

  • Parameters

    • value: unknown

    Returns value is LinearGradientInit

Static parse

  • Parameters

    • string: string

    Returns LinearGradient

Static parseAngle

  • Parameters

    • string: string

    Returns LinearGradientAngle

Generated using TypeDoc