Methods
beginPath
Returns void
clip
- clip(fillRule?: "evenodd" | "nonzero"): void
- clip(path: Path2D, fillRule?: "evenodd" | "nonzero"): void
Parameters
Optional fillRule: "evenodd" | "nonzero"
Returns void
Parameters
Optional fillRule: "evenodd" | "nonzero"
Returns void
fill
- fill(fillRule?: "evenodd" | "nonzero"): void
- fill(path: Path2D, fillRule?: "evenodd" | "nonzero"): void
Parameters
Optional fillRule: "evenodd" | "nonzero"
Returns void
Parameters
Optional fillRule: "evenodd" | "nonzero"
Returns void
isPointInPath
- isPointInPath(x: number, y: number, fillRule?: "evenodd" | "nonzero"): boolean
- isPointInPath(path: Path2D, x: number, y: number, fillRule?: "evenodd" | "nonzero"): boolean
Parameters
x: number
y: number
Optional fillRule: "evenodd" | "nonzero"
Returns boolean
Parameters
x: number
y: number
Optional fillRule: "evenodd" | "nonzero"
Returns boolean
isPointInStroke
- isPointInStroke(x: number, y: number): boolean
- isPointInStroke(path: Path2D, x: number, y: number): boolean
Parameters
Returns boolean
Parameters
Returns boolean
stroke
- stroke(): void
- stroke(path: Path2D): void
Returns void
Parameters
Returns void