Versions in this module Expand all Collapse all v0 v0.0.2 Feb 23, 2025 Changes in this version + var DefaultStyle = PathStyle + type Definition struct + Attrs []xml.Attr + ID string + Tag string + type OpClose struct + func (op OpClose) String() string + type OpCubicTo [3]fixed.Point26_6 + func (op OpCubicTo) String() string + type OpLineTo fixed.Point26_6 + func (op OpLineTo) String() string + type OpMoveTo fixed.Point26_6 + func (op OpMoveTo) String() string + type OpQuadTo [2]fixed.Point26_6 + func (op OpQuadTo) String() string + type Operation interface + type Path []Operation + func (p *Path) AddArc(points []float64, cx, cy, px, py float64) (lx, ly float64) + func (p *Path) AddRoundRect(minX, minY, maxX, maxY, rx, ry, rot float64) + func (p *Path) Clear() + func (p *Path) CubeBezier(b, c, d fixed.Point26_6) + func (p *Path) Line(b fixed.Point26_6) + func (p *Path) QuadBezier(b, c fixed.Point26_6) + func (p *Path) Start(a fixed.Point26_6) + func (p *Path) Stop(closeLoop bool) + func (p Path) String() string + func (p Path) ToSVGPath() string + type PathStyle struct + Dash DashOptions + FillColor Pattern + FillOpacity float64 + Join JoinOptions + LineColor Pattern + LineOpacity float64 + LineWidth float64 + Transform matrix.Matrix2D + UseNonZeroWinding bool + type StyledPath struct + Path Path + Style PathStyle + type ViewBox struct + H float64 + W float64 + X float64 + Y float64 + func (viewbox ViewBox) AspectMeet(dx, dy, ax, ay float64) (X, Y, W, H float64) v0.0.1 May 17, 2023 Changes in this version + var InvalidColor = Color + type Bounds struct + H float64 + W float64 + X float64 + Y float64 + func (viewBox Bounds) AspectMeet(dx, dy, ax, ay float64) (X, Y, W, H float64) + type CapMode uint8 + const ButtCap + const CubicCap + const NilCap + const QuadraticCap + const RoundCap + const SquareCap + func (c CapMode) String() string + type Color struct + func ValidColor(r, g, b, a uint8) Color + func (o Color) AsColor() color.Color + func (o Color) AsPattern() Pattern + type DashOptions struct + Dash []float64 + DashOffset float64 + type Drawer interface + Clear func() + CubeBezier func(b, c, d fixed.Point26_6) + Draw func(color Pattern, opacity float64) + Line func(b fixed.Point26_6) + QuadBezier func(b, c fixed.Point26_6) + Start func(a fixed.Point26_6) + Stop func(closeLoop bool) + type DrawerNG interface + Clear func() + Close func() + CubeBezier func(b, c, d fixed.Point26_6) + Fill func(color Pattern, opacity float64) + Line func(b fixed.Point26_6) + QuadBezier func(b, c fixed.Point26_6) + SetStrokeOptions func(options StrokeOptions) + SetWinding func(useNonZeroWinding bool) + Start func(a fixed.Point26_6) + Stroke func(color Pattern, opacity float64) + type Driver interface + SetupDrawers func(willFill, willStroke bool) (Filler, Stroker) + type ErrorMode uint8 + const IgnoreErrorMode + const StrictErrorMode + const WarnErrorMode + type Filler interface + SetWinding func(useNonZeroWinding bool) + type GapMode uint8 + const CubicGap + const FlatGap + const NilGap + const QuadraticGap + const RoundGap + func (g GapMode) String() string + type GradDirection interface + Params func() []float64 + Type func() GradType + type GradStop struct + Offset float64 + Opacity float64 + StopColor color.Color + type GradType byte + const Linear + const Radial + type GradUnits byte + const ObjectBoundingBox + const UserSpaceOnUse + type Gradient struct + Bounds Bounds + Direction GradDirection + Matrix matrix.Matrix2D + Spread SpreadMethod + Stops []GradStop + Units GradUnits + func (Gradient) IsPattern() + func (g *Gradient) ApplyPathExtent(extent fixed.Rectangle26_6) matrix.Matrix2D + type Icon interface + Draw func(d Driver, opacity float64) + SetTarget func(x, y, w, h float64) + ViewBox func() Bounds + type JoinMode uint8 + const Arc + const ArcClip + const Bevel + const Miter + const MiterClip + const Round + func (s JoinMode) String() string + type JoinOptions struct + LeadLineCap CapMode + LineGap GapMode + LineJoin JoinMode + MiterLimit fixed.Int26_6 + TrailLineCap CapMode + type LinearParams [4]float64 + func (LinearParams) Type() GradType + func (p LinearParams) Params() []float64 + type Pattern interface + IsPattern func() + type PlainColor color.NRGBA + func (PlainColor) IsPattern() + func (c PlainColor) RGBA() (r, g, b, a uint32) + type RadialParams [6]float64 + func (RadialParams) Type() GradType + func (p RadialParams) Params() []float64 + type SpreadMethod byte + const PadSpread + const ReflectSpread + const RepeatSpread + type StrokeOptions struct + Dash DashOptions + Join JoinOptions + LineWidth fixed.Int26_6 + type Stroker interface + SetStrokeOptions func(options StrokeOptions)