drc

package
v0.0.0-...-697b985 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: BSD-3-Clause, Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

func New

func New(framebuffer *image.RGBA) *Context

func (*Context) Background

func (c *Context) Background() color.RGBA

func (*Context) Circle

func (c *Context) Circle(xm, ym, r int)

func (*Context) Clear

func (c *Context) Clear()

func (*Context) Line

func (c *Context) Line(x0, y0, x1, y1 int)

func (*Context) Line3

func (c *Context) Line3(x0, y0, z0, x1, y1, z1 float64)

func (*Context) Line3p

func (c *Context) Line3p(p0, p1 f64.Vec3)

func (*Context) LineWidth

func (c *Context) LineWidth() float64

func (*Context) Matrix

func (c *Context) Matrix() f64.Mat4

func (*Context) NoStroke

func (c *Context) NoStroke()

func (*Context) Point

func (c *Context) Point(x, y int)

func (*Context) Point3

func (c *Context) Point3(x, y, z float64)

func (*Context) PopMatrix

func (c *Context) PopMatrix() f64.Mat4

func (*Context) PopStyle

func (c *Context) PopStyle() Style

func (*Context) PushMatrix

func (c *Context) PushMatrix(m f64.Mat4)

func (*Context) PushStyle

func (c *Context) PushStyle(s Style)

func (*Context) Restore

func (c *Context) Restore()

func (*Context) Save

func (c *Context) Save()

func (*Context) SetBackground

func (c *Context) SetBackground(col color.RGBA)

func (*Context) SetFill

func (c *Context) SetFill(col color.RGBA)

func (*Context) SetLineWidth

func (c *Context) SetLineWidth(lw float64)

func (*Context) SetMatrix

func (c *Context) SetMatrix(m f64.Mat4)

func (*Context) SetPointSize

func (c *Context) SetPointSize(sz float64)

func (*Context) SetStroke

func (c *Context) SetStroke(col color.RGBA)

func (*Context) SetStyle

func (c *Context) SetStyle(s Style)

func (*Context) Style

func (c *Context) Style() Style

func (*Context) TransformMatrix

func (c *Context) TransformMatrix(m *f64.Mat4)

type Style

type Style struct {
	Background color.RGBA
	LineWidth  float64
	PointSize  float64
	Stroke     color.RGBA
	Fill       color.RGBA
	NoFill     bool
	NoStroke   bool
}

Jump to

Keyboard shortcuts

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