Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2022 v0.0.1 Mar 5, 2022 Changes in this version + type Action interface + ApplyTo func(vg.Canvas) + Call func() string + type Canvas struct + Actions []Action + KeepCaller bool + func (c *Canvas) Comment(text string) + func (c *Canvas) DrawImage(rect vg.Rectangle, img image.Image) + func (c *Canvas) Fill(path vg.Path) + func (c *Canvas) FillString(font font.Face, pt vg.Point, str string) + func (c *Canvas) Pop() + func (c *Canvas) Push() + func (c *Canvas) ReplayOn(dst vg.Canvas) error + func (c *Canvas) Reset() + func (c *Canvas) Rotate(a float64) + func (c *Canvas) Scale(x, y float64) + func (c *Canvas) SetColor(col color.Color) + func (c *Canvas) SetLineDash(dashes []vg.Length, offs vg.Length) + func (c *Canvas) SetLineWidth(w vg.Length) + func (c *Canvas) Stroke(path vg.Path) + func (c *Canvas) Translate(pt vg.Point) + type Comment struct + Text string + func (a *Comment) ApplyTo(c vg.Canvas) + func (a *Comment) Call() string + type Commenter interface + Comment func(string) + type DrawImage struct + Image image.Image + Rectangle vg.Rectangle + func (a *DrawImage) ApplyTo(c vg.Canvas) + func (a *DrawImage) Call() string + type Fill struct + Path vg.Path + func (a *Fill) ApplyTo(c vg.Canvas) + func (a *Fill) Call() string + type FillString struct + Font font.Font + Point vg.Point + Size vg.Length + String string + func (a *FillString) ApplyTo(c vg.Canvas) + func (a *FillString) Call() string + type Pop struct + func (a *Pop) ApplyTo(c vg.Canvas) + func (a *Pop) Call() string + type Push struct + func (a *Push) ApplyTo(c vg.Canvas) + func (a *Push) Call() string + type Rotate struct + Angle float64 + func (a *Rotate) ApplyTo(c vg.Canvas) + func (a *Rotate) Call() string + type Scale struct + X float64 + Y float64 + func (a *Scale) ApplyTo(c vg.Canvas) + func (a *Scale) Call() string + type SetColor struct + Color color.Color + func (a *SetColor) ApplyTo(c vg.Canvas) + func (a *SetColor) Call() string + type SetLineDash struct + Dashes []vg.Length + Offsets vg.Length + func (a *SetLineDash) ApplyTo(c vg.Canvas) + func (a *SetLineDash) Call() string + type SetLineWidth struct + Width vg.Length + func (a *SetLineWidth) ApplyTo(c vg.Canvas) + func (a *SetLineWidth) Call() string + type Stroke struct + Path vg.Path + func (a *Stroke) ApplyTo(c vg.Canvas) + func (a *Stroke) Call() string + type Translate struct + Point vg.Point + func (a *Translate) ApplyTo(c vg.Canvas) + func (a *Translate) Call() string