Versions in this module Expand all Collapse all v0 v0.7.1 Jun 30, 2020 Changes in this version + const DefaultHeight + const DefaultWidth + func UseWH(w, h vg.Length) option + type Canvas struct + func New(w, h vg.Length) *Canvas + func NewWith(opts ...option) *Canvas + func (c *Canvas) DrawImage(rect vg.Rectangle, img image.Image) + func (c *Canvas) Fill(path vg.Path) + func (c *Canvas) FillString(font vg.Font, pt vg.Point, str string) + func (c *Canvas) Pop() + func (c *Canvas) Push() + func (c *Canvas) Rotate(rot float64) + func (c *Canvas) Scale(x, y float64) + func (c *Canvas) SetColor(clr color.Color) + func (c *Canvas) SetLineDash(dashes []vg.Length, offs vg.Length) + func (c *Canvas) SetLineWidth(w vg.Length) + func (c *Canvas) Size() (w, h vg.Length) + func (c *Canvas) Stroke(path vg.Path) + func (c *Canvas) Translate(pt vg.Point) + func (c *Canvas) WriteTo(w io.Writer) (int64, error)