lib

package
v0.0.0-...-e568f5c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 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 Canvas

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

func FromImage

func FromImage(img image.Image) Canvas

func New

func New(sizeX, sizeY int, canvasColor color.RGBA) Canvas

func (Canvas) At

func (c Canvas) At(x, y int) (color.RGBA, bool)

func (Canvas) Draw

func (c Canvas) Draw(canvasPosition [2]int, cursorPosition [2]int, pixelSize int)

func (*Canvas) Fill

func (c *Canvas) Fill(x, y int, color color.RGBA) error

func (*Canvas) SetPixel

func (c *Canvas) SetPixel(x, y int, color color.RGBA)

func (Canvas) Size

func (c Canvas) Size() [2]int

func (Canvas) ToImage

func (c Canvas) ToImage() image.Image

Jump to

Keyboard shortcuts

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