RenderGradientStop¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/render-program/RenderGradientStop.ts for the most up-to-date information.
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¶
Type SerializedRenderGradientStop¶
- ratio: number
- program: SerializedRenderProgram
Source Code¶
See the source for RenderGradientStop.ts in the alpenglow repository.