package
0.0.0-20240627062922-0ed1ff131195
Repository: https://github.com/llgcode/draw2d.git
Documentation: pkg.go.dev
# Functions
Bresenham draws a line between (x0, y0) and (x1, y1).
Flatten convert curves into straight segments keeping join segments info.
NewGlyphCache initializes a GlyphCache.
*
* Create a new Graphic context from an image
*/.
PolylineBresenham draws a polyline to an image.
SubdivideCubic a Bezier cubic curve in 2 equivalents Bezier cubic curves.
SubdivideQuad a Bezier quad curve in 2 equivalents Bezier quad curves.
TraceArc trace an arc using a Liner.
TraceCubic generate lines subdividing the cubic curve using a Liner flattening_threshold helps determines the flattening expectation of the curve.
TraceQuad generate lines subdividing the curve using a Liner flattening_threshold helps determines the flattening expectation of the curve.
# Constants
CurveRecursionLimit represents the maximum recursion that is really necessary to subsivide a curve into straight lines.
# Structs
Glyph represents a rune which has been converted to a Path and width.
GlyphCacheImp manage a map of glyphs without sync mecanism, not thread safe.
Transformer apply the Matrix transformation tr.
# Interfaces
Flattener receive segment definition.
GlyphCache manage a cache of glyphs.
Liner receive segment definition.