ShapeBasedOverlay¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery/blob/main/js/overlays/ShapeBasedOverlay.ts for the most up-to-date information.
Overview¶
Supertype for overlays that display colored shapes (updated every frame).
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class ShapeBasedOverlay¶
Constructor¶
new ShapeBasedOverlay( display : Display, rootNode : Node, name : string )¶
Instance Methods¶
addShape( shape : Shape, color : string, isOffset : boolean )¶
update()¶
addShapes()¶
dispose()¶
Releases references
Instance Properties¶
display : Display¶
(protected)
rootNode : Node¶
(protected)
svg : SVGElement¶
(protected)
domElement : SVGElement¶
Source Code¶
See the source for ShapeBasedOverlay.ts in the scenery repository.