Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICanvasGradient

Class used to abstract a canvas gradient

Hierarchy

  • ICanvasGradient

Index

Methods

Methods

addColorStopSearch playground for addColorStop

  • addColorStop(offset: number, color: string): void
  • adds a new color stop, defined by an offset and a color, to a given canvas gradient.

    Parameters

    • offset: number

      A number between 0 and 1, inclusive, representing the position of the color stop. 0 represents the start of the gradient and 1 represents the end.

    • color: string

      value representing the color of the stop.

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method