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