RenderPath¶
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/RenderPath.ts for the most up-to-date information.
Overview¶
Represents a path that controls what regions things are drawn in.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RenderPath¶
Constructor¶
new RenderPath( fillRule : FillRule, subpaths : Vector2[][] )¶
Instance Methods¶
transformed( transform : Matrix3 ) : RenderPath¶
getBounds() : Bounds2¶
isTriviallyEmpty() : boolean¶
Without scanning the entire path, returns whether we can guarantee that this path is empty and has zero area.
serialize() : SerializedRenderPath¶
Instance Properties¶
id¶
(readonly)
Static Methods¶
deserialize( obj : SerializedRenderPath ) : RenderPath¶
fromBounds( bounds : Bounds2 ) : RenderPath¶
Type SerializedRenderPath¶
- fillRule: FillRule
- subpaths: { x: number; y: number }[][]
Source Code¶
See the source for RenderPath.ts in the alpenglow repository.