Skip to content

SVGLinearGradient

Overview

Controller that creates and keeps an SVG linear gradient up-to-date with a Scenery LinearGradient

SVG gradients, see http://www.w3.org/TR/SVG/pservers.html

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class SVGLinearGradient

import { SVGLinearGradient } from 'scenerystack/scenery';

Constructor

new SVGLinearGradient( svgBlock : SVGBlock, gradient : LinearGradient )

Instance Methods

initialize( svgBlock : SVGBlock, gradient : LinearGradient ) : this

createDefinition() : SVGLinearGradientElement

(protected)

Creates the gradient-type-specific definition.

freeToPool()

Static Properties

pool : Pool

(readonly)

Source Code

See the source for SVGLinearGradient.ts in the scenery repository.