drawer

package
v0.0.0-...-9af2c75 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drawer

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

func NewDrawer

func NewDrawer(width, height int) *Drawer

NewDrawer create new instance of Drawer and initializes it.

func (*Drawer) FlipV

func (d *Drawer) FlipV()

Flip image by vertical

func (*Drawer) FlipVOld

func (d *Drawer) FlipVOld()

func (*Drawer) Img

func (d *Drawer) Img() *image.NRGBA

Img return current image as image.NRGBA type.

func (*Drawer) Line

func (d *Drawer) Line(x0, y0, x1, y1 int, color color.Color)

func (*Drawer) LineNewF

func (d *Drawer) LineNewF(x0, y0, x1, y1 int, color color.Color)

func (*Drawer) OldLine

func (d *Drawer) OldLine(x0, y0, x1, y1 int, color color.Color)

OldLine realized for any directions

func (*Drawer) OldLineF

func (d *Drawer) OldLineF(x0, y0, x1, y1 int, color color.Color)

OldLineF draws line with Bresenham's line algorithm

func (*Drawer) OldLineI

func (d *Drawer) OldLineI(x0, y0, x1, y1 int, color color.Color)

OldLineI draws line uses int type instead of float from Bresenham's line algorithm

Jump to

Keyboard shortcuts

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