mixin gfx::GraphicsPath

gfx::GraphicsPath

@Js

Source

GraphicsPath is used to path complex shapes for stroking, filling, and clipping.

clip

abstract This clip()

Source

Intersect the current clipping shape with this path. This call terminates the current pathing operation.

close

abstract This close()

Source

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)

Source

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()

Source

Stroke the the current path with the current brush and pen. This call terminates the current pathing operation.

fill

abstract This fill()

Source

Fill the current path with current brush. This call terminates the current pathing operation.

lineTo

abstract This lineTo(Int x, Int y)

Source

Add a line to the path from current point to given point.

moveTo

abstract This moveTo(Int x, Int y)

Source

Move the current point without creating a line.