image

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose(pos geom.Vec2, dst, src Image)

Like Copy, but does not overwrite a cell in dst if a cell in src is empty and has the default background.

func Copy

func Copy(pos geom.Vec2, dst, src Image)

Copy the cell contents from src to dst starting at [dstRow, dstCol],

Types

type Image

type Image []emu.Line

An Image is a simple buffer of terminal state.

func Capture

func Capture(view emu.View) Image

func New

func New(size geom.Vec2) Image

func (Image) Cell

func (i Image) Cell(x, y int) emu.Glyph

func (Image) Clone

func (i Image) Clone() Image

func (Image) Size

func (i Image) Size() geom.Vec2

Jump to

Keyboard shortcuts

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