pixel

package module
v0.0.0-...-b2d0001 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 13 Imported by: 0

README

pixel

Display image in the terminal / zellij + Batteries included and This is fork of ueberzug-go and unfortunately it unmaintained.

demo

Try


git clone https://github.com/sachinsenal0x64/pixel

cd pixel

go mod tidy

go run test

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close frees things

func GetParentSize

func GetParentSize() (int, int, error)

GetParentSize returns the size of the parent window, which is the terminal.

func Initialize

func Initialize() error

Initialize initalizes an X connection

Types

type Image

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

Image is the structure for the image

func NewImage

func NewImage(img image.Image, X, Y int) (*Image, error)

func (*Image) Clear

func (i *Image) Clear()

Clear clears the image

func (*Image) Destroy

func (i *Image) Destroy()

func (*Image) Show

func (i *Image) Show()

Show shows the image

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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