Skip to content

SVGPattern

Overview

Creates an SVG pattern element for a given pattern.

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

Class SVGPattern

import { SVGPattern } from 'scenerystack/scenery';

Constructor

new SVGPattern( pattern : Pattern )

Instance Methods

initialize( pattern : Pattern ) : this

update()

Called from SVGBlock, matches other paints.

dispose()

Disposes, so that it can be reused from the pool.

freeToPool()

Instance Properties

definition : SVGPatternElement

persistent

Static Properties

pool : Pool

(readonly)

Source Code

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