Methods
arc
- arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: undefined | false | true): void
-
Parameters
-
x: number
-
y: number
-
radius: number
-
startAngle: number
-
endAngle: number
-
Optional anticlockwise: undefined | false | true
Returns void
arcTo
- arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
radius: number
Returns void
bezierCurveTo
- bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void
-
Parameters
-
cp1x: number
-
cp1y: number
-
cp2x: number
-
cp2y: number
-
x: number
-
y: number
Returns void
closePath
-
Returns void
ellipse
- ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: undefined | false | true): void
-
Parameters
-
x: number
-
y: number
-
radiusX: number
-
radiusY: number
-
rotation: number
-
startAngle: number
-
endAngle: number
-
Optional anticlockwise: undefined | false | true
Returns void
lineTo
- lineTo(x: number, y: number): void
-
Parameters
Returns void
moveTo
- moveTo(x: number, y: number): void
-
Parameters
Returns void
quadraticCurveTo
- quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void
-
Parameters
-
cpx: number
-
cpy: number
-
x: number
-
y: number
Returns void
rect
- rect(x: number, y: number, w: number, h: number): void
-
Parameters
-
x: number
-
y: number
-
w: number
-
h: number
Returns void