tex

package
v0.0.0-...-07bc63f Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Writer

func Writer(w io.Writer, c *canvas.Canvas) error

Writer writes the canvas as a TeX file using PGF (\usepackage{pgf}). Be aware that TeX/PGF does not support transparency of colors.

Types

type TeX

type TeX struct {
	// contains filtered or unexported fields
}

func New

func New(w io.Writer, width, height float64) *TeX

New creates a TeX/pgf renderer.

func (*TeX) Close

func (r *TeX) Close() error

func (*TeX) RenderImage

func (r *TeX) RenderImage(img image.Image, m canvas.Matrix)

func (*TeX) RenderPath

func (r *TeX) RenderPath(path *canvas.Path, style canvas.Style, m canvas.Matrix)

func (*TeX) RenderText

func (r *TeX) RenderText(text *canvas.Text, m canvas.Matrix)

func (*TeX) Size

func (r *TeX) Size() (float64, float64)

Jump to

Keyboard shortcuts

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