Versions in this module Expand all Collapse all v0 v0.2.0 Aug 12, 2026 Changes in this version + func Bool(v bool) *bool type Options + DisableMultiStroke *bool + DisableMultiStrokeFill *bool + FillLineDash []float64 + FillLineDashOffset *float64 + FillShapeRoughnessGain *float64 + FixedDecimalPlaceDigits *float64 + PreserveVertices *bool + StrokeLineDash []float64 + StrokeLineDashOffset *float64 type ResolvedOptions + DisableMultiStroke bool + DisableMultiStrokeFill bool + FillLineDash []float64 + FillLineDashOffset float64 + FillShapeRoughnessGain float64 + FixedDecimalPlaceDigits *float64 + PreserveVertices bool + StrokeLineDash []float64 + StrokeLineDashOffset float64 v0.1.0 Aug 9, 2026 Changes in this version + func Float64(v float64) *float64 + func NewSeed() float64 + func NumberString(v float64) string + func String(v string) *string + type Config struct + Options *Options + type Drawable struct + Options *ResolvedOptions + Sets []OpSet + Shape string + type Generator struct + func NewGenerator(config *Config, surface ...*Surface) *Generator + func (g *Generator) Arc(x, y, width, height, start, stop float64, closed bool, options *Options) Drawable + func (g *Generator) Circle(x, y, diameter float64, options *Options) Drawable + func (g *Generator) Curve(points []Point, options *Options) Drawable + func (g *Generator) DefaultOptions() ResolvedOptions + func (g *Generator) Ellipse(x, y, width, height float64, options *Options) Drawable + func (g *Generator) Line(x1, y1, x2, y2 float64, options *Options) Drawable + func (g *Generator) LinearPath(points []Point, options *Options) Drawable + func (g *Generator) OpsToPath(drawing OpSet) string + func (g *Generator) Path(pathData string, options *Options) Drawable + func (g *Generator) Polygon(points []Point, options *Options) Drawable + func (g *Generator) Rectangle(x, y, width, height float64, options *Options) Drawable + func (g *Generator) ToPaths(d Drawable) []PathInfo + type Line [2]Point + type Op struct + Data []float64 + Op OpType + type OpSet struct + Ops []Op + Path string + Size *Point + Type OpSetType + type OpSetType string + const OpSetFillPath + const OpSetFillSketch + const OpSetPath + const OpSetPath2DFill + const OpSetPath2DPattern + type OpType string + const OpBCurveTo + const OpLineTo + const OpMove + const OpQCurveTo + type Options struct + Bowing *float64 + CurveFitting *float64 + CurveStepCount *float64 + CurveTightness *float64 + DashGap *float64 + DashOffset *float64 + Fill *string + FillStyle *string + FillWeight *float64 + HachureAngle *float64 + HachureGap *float64 + MaxRandomnessOffset *float64 + Roughness *float64 + Seed *float64 + Simplification *float64 + Stroke *string + StrokeWidth *float64 + ZigzagOffset *float64 + type PathInfo struct + D string + Fill string + Pattern *PatternInfo + Stroke string + StrokeWidth float64 + type PatternInfo struct + Height float64 + Path PathInfo + PatternUnits string + ViewBox string + Width float64 + X float64 + Y float64 + type Point [2]float64 + type Rectangle struct + Height float64 + Width float64 + X float64 + Y float64 + type ResolvedOptions struct + Bowing float64 + CurveFitting float64 + CurveStepCount float64 + CurveTightness float64 + DashGap float64 + DashOffset float64 + Fill string + FillStyle string + FillWeight float64 + HachureAngle float64 + HachureGap float64 + MaxRandomnessOffset float64 + Roughness float64 + RoughnessGain float64 + Seed float64 + Simplification float64 + Stroke string + StrokeWidth float64 + ZigzagOffset float64 + type Surface struct + Height float64 + Width float64