draw

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Circle

func Circle(origin []float64, radius float64, numPoints int) ([][]float64, error)

func DrawCoordLine

func DrawCoordLine(gc draw2d.GraphicContext, lineCoords [][]float64, lineWidth float64, fillColor color.Color, strokeWidth float64, strokeColor color.Color, scale func(x, y float64) (float64, float64)) error

func DrawRune

func DrawRune(gc *draw2dimg.GraphicContext, pos []float64, f font.Face, rotation float64, char rune) error

Types

type Envelope

type Envelope struct {
	Min, Max []float64
}

func ToEnvelope

func ToEnvelope(lineCoords [][]float64) (Envelope, error)

func (Envelope) Dx

func (e Envelope) Dx() float64

func (Envelope) Dy

func (e Envelope) Dy() float64

func (Envelope) Px

func (e Envelope) Px(x float64) float64

func (Envelope) Py

func (e Envelope) Py(y float64) float64

Jump to

Keyboard shortcuts

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