type
GraphicsPath
@Js
mixin GraphicsPath
GraphicsPath is used to path complex shapes for stroking, filling, and clipping.
methods
arc |
Create circular arc centered at x, y with given radius. |
---|---|
clip |
Intersect the current clipping shape with this path. |
close |
Close the path by add a line from current point back to starting point. |
curveTo |
Add a Bézier curve to the path. |
draw |
Stroke the the current path using current stroke and paint. |
fill |
Fill the current path with current paint. |
lineTo |
Add a line to the path from current point to given point. |
moveTo |
Move the current point without creating a line. |
quadTo |
Add a quadratic Bézier curve to the path. |
Slot Details
arc
abstract This arc(Float x, Float y, Float radius, Float start, Float sweep)
Create circular arc centered at x, y with given radius. The start angle and sweep angle are measured in degrees. East is 0°, north 90°, west is 180°, and south is 270°. Positive sweeps are counterclockwise and negative sweeps are clockwise.
clip
abstract This clip()
Intersect the current clipping shape with this path. This call terminates the current pathing operation.
close
abstract This close()
Close the path by add a line from current point back to starting point.
curveTo
draw
abstract This draw()
Stroke the the current path using current stroke and paint. This call terminates the current pathing operation.
fill
abstract This fill()
Fill the current path with current paint. This call terminates the current pathing operation.