Documentation ¶
Index ¶
- Variables
- type ImageOptions
- type Pinhole
- func (p *Pinhole) Begin()
- func (p *Pinhole) Center()
- func (p *Pinhole) Colorize(color color.Color)
- func (p *Pinhole) DrawCircle(x, y, z float64, radius float64)
- func (p *Pinhole) DrawCube(minx, miny, minz, maxx, maxy, maxz float64)
- func (p *Pinhole) DrawDot(x, y, z float64, radius float64)
- func (p *Pinhole) DrawLine(x1, y1, z1, x2, y2, z2 float64)
- func (p *Pinhole) DrawRect(minx, miny, maxx, maxy, z float64)
- func (p *Pinhole) DrawString(x, y, z float64, s string)
- func (p *Pinhole) End()
- func (p *Pinhole) Image(width, height int, opts *ImageOptions) *image.RGBA
- func (p *Pinhole) LoadObj(r io.Reader) error
- func (p *Pinhole) Rotate(x, y, z float64)
- func (p *Pinhole) SavePNG(path string, width, height int, opts *ImageOptions) error
- func (p *Pinhole) Scale(x, y, z float64)
- func (p *Pinhole) Translate(x, y, z float64)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultImageOptions = &ImageOptions{ BGColor: color.White, LineWidth: 1, Scale: 1, }
Functions ¶
This section is empty.
Types ¶
type ImageOptions ¶
type Pinhole ¶
type Pinhole struct {
// contains filtered or unexported fields
}
func (*Pinhole) DrawCircle ¶
func (*Pinhole) DrawString ¶
Click to show internal directories.
Click to hide internal directories.