mixin gfx::GraphicsPath
gfx::GraphicsPath
@Js
GraphicsPath is used to path complex shapes for stroking, filling, and clipping.
- 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
-
abstract This curveTo(Int cp1x, Int cp1y, Int cp2x, Int cp2y, Int x, Int y)
Add a Bézier curve to the path. The cp1 and cp2 parameters specify the first and second control points; x and y specify the end point.
- draw
-
abstract This draw()
Stroke the the current path with the current brush and pen. This call terminates the current pathing operation.
- fill
-
abstract This fill()
Fill the current path with current brush. This call terminates the current pathing operation.
- lineTo
-
abstract This lineTo(Int x, Int y)
Add a line to the path from current point to given point.
- moveTo
-
abstract This moveTo(Int x, Int y)
Move the current point without creating a line.