toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-browser
/
web.canvas
/
CanvasPath
Canvas
Path
sealed
external
interface
CanvasPath
(
source
)
Inheritors
CanvasRenderingContext2D
OffscreenCanvasRenderingContext2D
Path2D
Members
Functions
arc
Link copied to clipboard
open
fun
arc
(
x
:
Double
,
y
:
Double
,
radius
:
Double
,
startAngle
:
Double
,
endAngle
:
Double
,
counterclockwise
:
Boolean
=
definedExternally
)
MDN Reference
arc
To
Link copied to clipboard
open
fun
arcTo
(
x1
:
Double
,
y1
:
Double
,
x2
:
Double
,
y2
:
Double
,
radius
:
Double
)
MDN Reference
bezier
Curve
To
Link copied to clipboard
open
fun
bezierCurveTo
(
cp1x
:
Double
,
cp1y
:
Double
,
cp2x
:
Double
,
cp2y
:
Double
,
x
:
Double
,
y
:
Double
)
MDN Reference
close
Path
Link copied to clipboard
open
fun
closePath
(
)
MDN Reference
ellipse
Link copied to clipboard
open
fun
ellipse
(
x
:
Double
,
y
:
Double
,
radiusX
:
Double
,
radiusY
:
Double
,
rotation
:
Double
,
startAngle
:
Double
,
endAngle
:
Double
,
counterclockwise
:
Boolean
=
definedExternally
)
MDN Reference
line
To
Link copied to clipboard
open
fun
lineTo
(
x
:
Double
,
y
:
Double
)
MDN Reference
move
To
Link copied to clipboard
open
fun
moveTo
(
x
:
Double
,
y
:
Double
)
MDN Reference
quadratic
Curve
To
Link copied to clipboard
open
fun
quadraticCurveTo
(
cpx
:
Double
,
cpy
:
Double
,
x
:
Double
,
y
:
Double
)
MDN Reference
rect
Link copied to clipboard
open
fun
rect
(
x
:
Double
,
y
:
Double
,
w
:
Double
,
h
:
Double
)
MDN Reference
round
Rect
Link copied to clipboard
open
fun
roundRect
(
x
:
Double
,
y
:
Double
,
w
:
Double
,
h
:
Double
,
radii
:
Any
=
definedExternally
)
MDN Reference