termuiimg

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 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 Image

type Image struct {
	termui.Block
	Canvas *term.Canvas
}

func NewImage

func NewImage(tm *term.Terminal, img image.Image, bounds image.Rectangle) (*Image, error)

func (*Image) Close

func (m *Image) Close() error

func (*Image) Draw

func (m *Image) Draw(buf *termui.Buffer)

func (*Image) SetImage added in v0.0.5

func (m *Image) SetImage(img image.Image)

Jump to

Keyboard shortcuts

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