Versions in this module Expand all Collapse all v0 v0.14.0 Aug 31, 2023 v0.13.0 May 12, 2023 v0.12.0 Sep 5, 2022 v0.11.0 Mar 17, 2022 v0.10.1 Jan 19, 2022 v0.10.0 Sep 27, 2021 Changes in this version type Rectangle + func (r Rectangle) Add(p Point) Rectangle v0.9.0 Mar 10, 2021 v0.8.1 Nov 3, 2020 v0.8.0 Sep 4, 2020 Changes in this version type Canvas + func MultiCanvas(cs ...Canvas) Canvas v0.7.0 Feb 27, 2020 Changes in this version + const ArcComp + const Centimeter + const CloseComp + const CurveComp + const Inch + const LineComp + const Millimeter + const MoveComp + var FontDirs []string + var FontMap = map[string]string + func AddFont(name string, font *truetype.Font) + func Initialize(c Canvas) + type Canvas interface + DrawImage func(rect Rectangle, img image.Image) + Fill func(Path) + FillString func(f Font, 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) + type CanvasSizer interface + Size func() (x, y Length) + type CanvasWriterTo interface + type Font struct + Size Length + func MakeFont(name string, size Length) (font Font, err error) + func (f *Font) Extents() FontExtents + func (f *Font) Font() *truetype.Font + func (f *Font) FontFace(dpi float64) font.Face + func (f *Font) Name() string + func (f *Font) SetName(name string) error + func (f *Font) Width(s string) Length + type FontExtents struct + Ascent Length + Descent Length + Height Length + type Length float64 + func ParseLength(value string) (Length, error) + func Points(pt float64) Length + func (l Length) Dots(dpi float64) float64 + func (l Length) Points() float64 + 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) Path() (p Path) + func (r Rectangle) Size() Point