RenderGradientStop¶
Overview¶
A gradient stop for linear/radial gradients
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RenderGradientStop¶
Constructor¶
new RenderGradientStop( ratio : number, program : RenderProgram )¶
Instance Methods¶
withProgram( program : RenderProgram ) : RenderGradientStop¶
serialize() : SerializedRenderGradientStop¶
Static Methods¶
evaluate( context : RenderEvaluationContext, stops : RenderGradientStop[], t : number ) : Vector4¶
deserialize( obj : SerializedRenderGradientStop ) : RenderGradientStop¶
Type SerializedRenderGradientStop¶
- ratio: number
- program: SerializedRenderProgram
Source Code¶
See the source for RenderGradientStop.ts in the alpenglow repository.