RenderPath¶
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.