RenderLinearGradientLogic¶
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/RenderLinearGradientLogic.ts for the most up-to-date information.
Overview¶
Logic for a linear gradient
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RenderLinearGradientLogic¶
Constructor¶
new RenderLinearGradientLogic( inverseTransform : Matrix3, start : Vector2, gradDelta : Vector2, ratios : number[], extend : RenderExtend, accuracy : RenderLinearGradientAccuracy )¶
Instance Methods¶
equals( other : RenderLinearGradientLogic ) : boolean¶
computeLinearValue( context : RenderEvaluationContext ) : number¶
isLinear() : boolean¶
Static Methods¶
from( transform : Matrix3, start : Vector2, end : Vector2, ratios : number[], extend : RenderExtend, accuracy : RenderLinearGradientAccuracy ) : RenderLinearGradientLogic¶
Source Code¶
See the source for RenderLinearGradientLogic.ts in the alpenglow repository.