Describes the location and color of a transition point in a gradient.

Hierarchy

Hierarchy

  • Base
    • GradientStop

Constructors

  • Parameters

    Returns GradientStop

Properties

$type: Type
$t: Type
nextHashCode: number

Accessors

  • get position(): number
  • Returns the position of this gradient stop, as a number between 0 and 1.

    The value assigned to the Position property represents a fraction of the area to which the gradient is applied.

    For example, to add two stops of equal length, create one GradientStop with a position of .5 and another with a position of 1.0.

    The first stop extends from the origin to the halfway point of the fill area, and the second extends from the end of the first to the endpoint of the area to be filled. For three uniform stops, use .33. .67, and 1.0 as the respective positions; for four, use .25, .5, .75, and 1.0, etc.

    Returns number

Methods

  • Parameters

    • other: any

    Returns boolean

  • Returns number

  • Returns Base

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns boolean

  • Parameters

    • a: any
    • b: any

    Returns boolean

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns number

  • Parameters

    • a: any
    • b: any

    Returns boolean