pinhole: github.com/tidwall/pinhole Index | Files | Directories

package pinhole

import "github.com/tidwall/pinhole"

Index

Package Files

pinhole.go

Variables

var DefaultImageOptions = &ImageOptions{
    BGColor:   color.White,
    LineWidth: 1,
    Scale:     1,
}

type ImageOptions Uses

type ImageOptions struct {
    BGColor   color.Color
    LineWidth float64
    Scale     float64
}

type Pinhole Uses

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

func New Uses

func New() *Pinhole

func (*Pinhole) Begin Uses

func (p *Pinhole) Begin()

func (*Pinhole) Center Uses

func (p *Pinhole) Center()

func (*Pinhole) Colorize Uses

func (p *Pinhole) Colorize(color color.Color)

func (*Pinhole) DrawCircle Uses

func (p *Pinhole) DrawCircle(x, y, z float64, radius float64)

func (*Pinhole) DrawCube Uses

func (p *Pinhole) DrawCube(minx, miny, minz, maxx, maxy, maxz float64)

func (*Pinhole) DrawDot Uses

func (p *Pinhole) DrawDot(x, y, z float64, radius float64)

func (*Pinhole) DrawLine Uses

func (p *Pinhole) DrawLine(x1, y1, z1, x2, y2, z2 float64)

func (*Pinhole) DrawRect Uses

func (p *Pinhole) DrawRect(minx, miny, maxx, maxy, z float64)

func (*Pinhole) DrawString Uses

func (p *Pinhole) DrawString(x, y, z float64, s string)

func (*Pinhole) End Uses

func (p *Pinhole) End()

func (*Pinhole) Image Uses

func (p *Pinhole) Image(width, height int, opts *ImageOptions) *image.RGBA

func (*Pinhole) LoadObj Uses

func (p *Pinhole) LoadObj(r io.Reader) error

func (*Pinhole) Rotate Uses

func (p *Pinhole) Rotate(x, y, z float64)

func (*Pinhole) SavePNG Uses

func (p *Pinhole) SavePNG(path string, width, height int, opts *ImageOptions) error

func (*Pinhole) Scale Uses

func (p *Pinhole) Scale(x, y, z float64)

func (*Pinhole) Translate Uses

func (p *Pinhole) Translate(x, y, z float64)

Directories

PathSynopsis
examples

Package pinhole imports 15 packages (graph) and is imported by 5 packages. Updated 2017-07-13. Refresh now. Tools for package owners.