canvas

package
v0.0.0-...-e996cf0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 6 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 {
	W        int
	H        int
	MaxIndex int
	Pixels   []geom.Tuple4
}

func NewCanvas

func NewCanvas(w int, h int) *Canvas

func (*Canvas) ColorAt

func (c *Canvas) ColorAt(col, row int) geom.Tuple4

func (*Canvas) WritePixel

func (c *Canvas) WritePixel(col, row int, color geom.Tuple4)

func (*Canvas) WritePixelMutex

func (c *Canvas) WritePixelMutex(col, row int, color geom.Tuple4)

func (*Canvas) WritePixelToIndex

func (c *Canvas) WritePixelToIndex(idx int, color geom.Tuple4)

Jump to

Keyboard shortcuts

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