Versions in this module Expand all Collapse all v0 v0.11.14 Jun 30, 2022 v0.11.13 Jun 30, 2022 v0.11.12 Jun 30, 2022 v0.11.11 Jun 30, 2022 v0.11.10 Jun 30, 2022 v0.11.9 Jun 30, 2022 v0.11.8 Jun 30, 2022 v0.11.7 Jun 30, 2022 v0.11.6 Jun 30, 2022 v0.11.5 Jun 30, 2022 v0.11.4 Jun 30, 2022 v0.11.3 Jun 30, 2022 v0.11.2 Jun 30, 2022 v0.11.1 Jun 30, 2022 Changes in this version + const ArcComp + const Centimeter + const CloseComp + const CurveComp + const Inch + const LineComp + const Millimeter + const MoveComp + func Initialize(c Canvas) + type Canvas interface + DrawImage func(rect Rectangle, img image.Image) + Fill func(Path) + FillString func(f font.Face, pt Point, text string) + Pop func() + Push func() + Rotate func(rad float64) + Scale func(x, y float64) + SetColor func(color.Color) + SetLineDash func(pattern []Length, offset Length) + SetLineWidth func(Length) + Stroke func(Path) + Translate func(pt Point) + func MultiCanvas(cs ...Canvas) Canvas + type CanvasSizer interface + Size func() (x, y Length) + type CanvasWriterTo interface + type Length = font.Length + func ParseLength(value string) (Length, error) + func Points(pt float64) Length + type Path []PathComp + func (p *Path) Arc(pt Point, rad Length, s, a float64) + func (p *Path) Close() + func (p *Path) CubeTo(p1, p2, pt Point) + func (p *Path) Line(pt Point) + func (p *Path) Move(pt Point) + func (p *Path) QuadTo(p1, pt Point) + type PathComp struct + Angle float64 + Control []Point + Pos Point + Radius Length + Start float64 + Type int + type Point struct + X Length + Y Length + func (p Point) Add(q Point) Point + func (p Point) Dot(q Point) Length + func (p Point) Scale(s Length) Point + func (p Point) Sub(q Point) Point + type Rectangle struct + Max Point + Min Point + func (r Rectangle) Add(p Point) Rectangle + func (r Rectangle) Path() (p Path) + func (r Rectangle) Size() Point