pixelman

package
v0.0.0-...-e79aa0a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT 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 NewContext

func NewContext(width int, height int) *Context

func (*Context) Clear

func (ctx *Context) Clear()

func (*Context) DrawLine

func (ctx *Context) DrawLine(x1, y1, x2, y2 int) error

func (*Context) SavePNG

func (ctx *Context) SavePNG(filename string) error

func (*Context) SetLineWidth

func (ctx *Context) SetLineWidth(width int)

func (*Context) SetRGB

func (ctx *Context) SetRGB(r, g, b uint8)

func (*Context) Stroke

func (ctx *Context) Stroke()

Jump to

Keyboard shortcuts

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