vgeps

package
v0.0.0-...-7c6133f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

The vgeps implemens the vg.Canvas interface using encapsulated postscript.

Index

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 New

func New(w, h vg.Length) *Canvas

New returns a new Canvas.

func NewTitle

func NewTitle(w, h vg.Length, title string) *Canvas

NewTitle returns a new Canvas with the given title string.

func (*Canvas) DPI

func (e *Canvas) DPI() float64

func (*Canvas) Fill

func (e *Canvas) Fill(path vg.Path)

func (*Canvas) FillString

func (e *Canvas) FillString(fnt vg.Font, x, y vg.Length, str string)

func (*Canvas) Pop

func (e *Canvas) Pop()

func (*Canvas) Push

func (e *Canvas) Push()

func (*Canvas) Rotate

func (e *Canvas) Rotate(r float64)

func (*Canvas) Scale

func (e *Canvas) Scale(x, y float64)

func (*Canvas) SetColor

func (e *Canvas) SetColor(c color.Color)

func (*Canvas) SetLineDash

func (e *Canvas) SetLineDash(dashes []vg.Length, o vg.Length)

func (*Canvas) SetLineWidth

func (e *Canvas) SetLineWidth(w vg.Length)

func (*Canvas) Size

func (c *Canvas) Size() (w, h vg.Length)

func (*Canvas) Stroke

func (e *Canvas) Stroke(path vg.Path)

func (*Canvas) Translate

func (e *Canvas) Translate(x, y vg.Length)

func (*Canvas) WriteTo

func (e *Canvas) WriteTo(w io.Writer) (int64, error)

WriteTo writes the canvas to an io.Writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL