Documentation ¶
Overview ¶
The vgsvg package uses svgo (github.com/ajstarks/svgo) as a backend for vg.
Index ¶
- type Canvas
- func (c *Canvas) DPI() float64
- func (c *Canvas) Fill(path vg.Path)
- func (c *Canvas) FillString(font vg.Font, x, y vg.Length, 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(x, y vg.Length)
- func (c *Canvas) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
func (*Canvas) SetLineWidth ¶
Click to show internal directories.
Click to hide internal directories.