package vgeps
import "gonum.org/v1/plot/vg/vgeps"
Package vgeps implements the vg.Canvas interface using encapsulated postscript.
Index ¶
- Constants
- type Canvas
- func New(w, h vg.Length) *Canvas
- func NewTitle(w, h vg.Length, title string) *Canvas
- func (c *Canvas) DrawImage(rect vg.Rectangle, img image.Image)
- func (e *Canvas) Fill(path vg.Path)
- func (e *Canvas) FillString(fnt font.Face, pt vg.Point, str string)
- func (e *Canvas) Pop()
- func (e *Canvas) Push()
- func (e *Canvas) Rotate(r float64)
- func (e *Canvas) Scale(x, y float64)
- func (e *Canvas) SetColor(c color.Color)
- func (e *Canvas) SetLineDash(dashes []vg.Length, o vg.Length)
- func (e *Canvas) SetLineWidth(w vg.Length)
- func (c *Canvas) Size() (w, h vg.Length)
- func (e *Canvas) Stroke(path vg.Path)
- func (e *Canvas) Translate(pt vg.Point)
- func (e *Canvas) WriteTo(w io.Writer) (int64, error)
Constants ¶
const DPI = 72
DPI is the nominal resolution of drawing in EPS.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
func New ¶
New returns a new Canvas.
func NewTitle ¶
NewTitle returns a new Canvas with the given title string.
func (*Canvas) DrawImage ¶
DrawImage implements the vg.Canvas.DrawImage method.
func (*Canvas) Fill ¶
func (*Canvas) FillString ¶
func (*Canvas) Pop ¶
func (e *Canvas) Pop()
func (*Canvas) Push ¶
func (e *Canvas) Push()
func (*Canvas) Rotate ¶
func (*Canvas) Scale ¶
func (*Canvas) SetColor ¶
func (*Canvas) SetLineDash ¶
func (*Canvas) SetLineWidth ¶
func (*Canvas) Size ¶
func (*Canvas) Stroke ¶
func (*Canvas) Translate ¶
func (*Canvas) WriteTo ¶
WriteTo writes the canvas to an io.Writer.
Source Files ¶
vgeps.go
- Version
- v0.15.0 (latest)
- Published
- Oct 22, 2024
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 1 week ago –
Tools for package owners.