Hierarchy

Implements

Index

Constructors

constructor

  • new StiGlareBrush(startColor?: Color, endColor?: Color, angle?: number, focus?: number, scale?: number): StiGlareBrush
  • Parameters

    • Default value startColor: Color = Color.black
    • Default value endColor: Color = Color.white
    • Default value angle: number = 0
    • Default value focus: number = 0.5
    • Default value scale: number = 1

    Returns StiGlareBrush

Accessors

angle

  • get angle(): number
  • set angle(value: number): void
  • Gets or sets the angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.

    Returns number

  • Gets or sets the angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.

    Parameters

    • value: number

    Returns void

endColor

  • get endColor(): Color
  • set endColor(value: Color): void
  • Gets or sets the ending color for the gradient.

    Returns Color

  • Gets or sets the ending color for the gradient.

    Parameters

    Returns void

focus

  • get focus(): number
  • set focus(value: number): void
  • Gets or sets value from 0 through 1 that specifies the center of the gradient (the point where the gradient is composed of only the ending color).

    Returns number

  • Gets or sets value from 0 through 1 that specifies the center of the gradient (the point where the gradient is composed of only the ending color).

    Parameters

    • value: number

    Returns void

scale

  • get scale(): number
  • set scale(value: number): void
  • Gets or sets value from 0 through 1 that specifies how fast the colors falloff from the focus.

    Returns number

  • Gets or sets value from 0 through 1 that specifies how fast the colors falloff from the focus.

    Parameters

    • value: number

    Returns void

startColor

  • get startColor(): Color
  • set startColor(value: Color): void
  • Gets or sets the starting color for the gradient.

    Returns Color

  • Gets or sets the starting color for the gradient.

    Parameters

    Returns void

Methods

as

  • Type parameters

    • T

    Parameters

    Returns T

clone

equals

  • equals(obj: any): boolean

getHashCode

  • getHashCode(): number
  • Returns number

implements

  • implements(): any[]

is

  • Type parameters

    • T

    Parameters

    Returns this

is2

  • is2<T>(type: object | Interface<T>): boolean
  • Type parameters

    • T

    Parameters

    Returns boolean

memberwiseClone

Static convertToBrush

  • convertToBrush(text: string): StiBrush

Static dark

Static getBrush

Static isEmpty

  • Returns true if this brush is empty - brush is null or StiEmptyBrush.

    Parameters

    Returns boolean

Static isTransparent

  • isTransparent(brush: StiBrush): boolean
  • Returns true if this brush is transparent - brush is null, empty or solid and color is transparent.

    Parameters

    Returns boolean

Static light

Static loadFromXml

Static toColor

Generated using TypeDoc