ColorGradient

Class used to store color4 gradient

Hierarchy

  • ColorGradient

Implements

Index

Properties

Methods

Properties

color1

Find examples in Playground
color1: Color4

Gets or sets first associated color

Optional color2

Find examples in Playground
color2: Color4

Gets or sets second associated color

gradient

Find examples in Playground
gradient: number

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

Methods

getColorToRef

Find examples in Playground
  • 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

Generated using TypeDoc