Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorGradient

Class used to store color4 gradient

Hierarchy

  • ColorGradient

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new color4 gradient

    Parameters

    • gradient: number

      gets or sets the gradient value (between 0 and 1)

    • color1: Color4

      gets or sets first associated color

    • Optional color2: Color4 | undefined

      gets or sets first second color

    Returns ColorGradient

Properties

color1Search playground for color1

color1: Color4

Gets or sets first associated color

Optional color2Search playground for color2

color2: Color4 | undefined

Gets or sets second associated color

gradientSearch playground for gradient

gradient: number

Gets or sets the gradient value (between 0 and 1)

Methods

getColorToRefSearch playground for getColorToRef

  • getColorToRef(result: Color4): void
  • Will get a color picked randomly between color1 and color2. If color2 is undefined then color1 will be used

    Parameters

    • result: Color4

      defines the target Color4 to store the result in

    Returns void

Legend

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