SVGGradientStop¶
Overview¶
Handles creation of an SVG stop element, and handles keeping it updated based on property/color changes.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class SVGGradientStop¶
Constructor¶
new SVGGradientStop( svgGradient : ActiveSVGGradient, ratio : number, color : TColor )¶
Instance Methods¶
isActiveSVGGradientStop() : this is ActiveSVGGradientStop¶
initialize( svgGradient : ActiveSVGGradient, ratio : number, color : TColor ) : this¶
update()¶
Updates the color stop to whatever the current color should be.
dispose()¶
Disposes, so that it can be reused from the pool.
freeToPool()¶
Instance Properties¶
svgElement : SVGStopElement¶
persistent
svgGradient : ActiveSVGGradient | null¶
transient
color : TColor¶
ratio : number¶
Static Properties¶
pool : Pool¶
(readonly)
Source Code¶
See the source for SVGGradientStop.ts in the scenery repository.