new Path(canvas)
Simple Path class that inherits all functionalities from Path2D and adds fill() and draw() methods for direct draw on the canvas
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas |
Extends
- Path2D
Classes
Methods
draw() → {void}
Draws the path
Returns:
- Type
- void
fill() → {void}
Fills the path
Returns:
- Type
- void