cmd

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Screen tcell.Screen

Screen is the main screen that will be initialized and drawn to.

Functions

func AnimateGif

func AnimateGif(g *gif.Helper, nextFrame chan conversion.RGBRunes, stop chan struct{}, zoomChan chan Zoom)

AnimateGif is a helper to fire off animation events at the correct time.

func Root

func Root(imageFiles []string, supported map[string]struct{})

Root is the main function to be run by the root command.

Types

type Shift

type Shift struct {
	image.Point
	// contains filtered or unexported fields
}

Shift is a wrapper around image.Point that specifies absolute shift or relative.

type Zoom

type Zoom uint

Zoom is used to manage the zoom-level as a percentage.

func (Zoom) TransImage

func (percentage Zoom) TransImage(i image.Image) image.Image

TransImage transforms an image by a zoom percentage.

Jump to

Keyboard shortcuts

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