pixel

package module
v0.0.0-...-97289c0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 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
pixel command

Jump to

Keyboard shortcuts

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