framebuffer

package
v0.220726.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framebuffer

type Framebuffer struct {
	Buf []byte
	// contains filtered or unexported fields
}

func New

func New(dev string) (*Framebuffer, error)

func (*Framebuffer) Close

func (fb *Framebuffer) Close()

func (*Framebuffer) Flush

func (fb *Framebuffer) Flush() error

func (*Framebuffer) Size

func (fb *Framebuffer) Size() image.Point

func (*Framebuffer) Update

func (fb *Framebuffer) Update(cs []color.RGBA) error

Sets all pixels in internal buffer, call Flush() to write to hardware.

Jump to

Keyboard shortcuts

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