package
0.0.0-20240627062922-0ed1ff131195
Repository: https://github.com/llgcode/draw2d.git
Documentation: pkg.go.dev

# README

draw2d/draw2dbase

Coverage GoDoc

Base package implementation that is used by pdf, svg, img, gl implementations.

# Functions

Bresenham draws a line between (x0, y0) and (x1, y1).
Flatten convert curves into straight segments keeping join segments info.
No description provided by the author
NewGlyphCache initializes a GlyphCache.
No description provided by the author
* * 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.

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
No description provided by the author
No description provided by the author
Transformer apply the Matrix transformation tr.

# Interfaces

Flattener receive segment definition.
GlyphCache manage a cache of glyphs.
Liner receive segment definition.