img

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawRectOutline

func DrawRectOutline(r *vector.Rasterizer, dst *image.RGBA, w int, h int, c color.RGBA, outV []Vertex, inV []Vertex)

func GenJPG

func GenJPG(out io.Writer, w int, h int) error

func GenPNG

func GenPNG(out io.Writer, w int, h int) error

func GenSVG

func GenSVG(out io.Writer, w int, h int) error

func GenVector

func GenVector(img *image.RGBA, w int, h int) error

Types

type Vertex

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

func (Vertex) Rotate

func (v Vertex) Rotate(x float32, y float32, a float64) Vertex

func (Vertex) Translate

func (v Vertex) Translate(x float32, y float32) Vertex

type Vertices

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

func CalcVertices

func CalcVertices(w int, h int, rw int, rh int, g int) Vertices

func (Vertices) Rotate

func (v Vertices) Rotate(x float32, y float32, a float64) Vertices

func (Vertices) Translate

func (v Vertices) Translate(x float32, y float32) Vertices

Jump to

Keyboard shortcuts

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