Documentation ¶
Overview ¶
Package draw2dkit provides helpers to draw common figures using a Path
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Circle ¶
func Circle(path draw2d.PathBuilder, cx, cy, radius float64)
Circle draws a circle using a path with center (cx,cy) and radius
func Ellipse ¶
func Ellipse(path draw2d.PathBuilder, cx, cy, rx, ry float64)
Ellipse draws an ellipse using a path with center (cx,cy) and radius (rx,ry)
func Rectangle ¶
func Rectangle(path draw2d.PathBuilder, x1, y1, x2, y2 float64)
Rectangle draws a rectangle using a path between (x1,y1) and (x2,y2)
func RoundedRectangle ¶
func RoundedRectangle(path draw2d.PathBuilder, x1, y1, x2, y2, arcWidth, arcHeight float64)
RoundedRectangle draws a rectangle using a path between (x1,y1) and (x2,y2)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.