Class: Path

Path(canvas)

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
Source:

Extends

  • Path2D

Classes

Path

Methods

draw() → {void}

Draws the path
Source:
Returns:
Type
void

fill() → {void}

Fills the path
Source:
Returns:
Type
void