ent

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackground

func NewBackground(s string)

func NewRGBA

func NewRGBA(s string) *color.RGBA

func UpdateColor

func UpdateColor(bg Background, col *color.RGBA) *color.RGBA

Types

type Background

type Background int

Background is a type of the background around an image.

const (
	Blur Background = iota
	Average
	Tile
	RGB
	Black
	Red
	Pink
	Blue
	Green
)

type Fit

type Fit int
const (
	Stretch Fit = iota
	Fill
	FillNoCrop
	Center
	Tiling
)

func NewFit

func NewFit(s string) Fit

func (Fit) ToFeh added in v0.0.6

func (fit Fit) ToFeh() string

type ImgOrder

type ImgOrder int
const (
	ByName ImgOrder = iota
	ByNameDesc
	Random
)

func NewImgOrder

func NewImgOrder(s string) ImgOrder

type Monitor added in v0.0.6

type Monitor struct {
	Number int
	Width  int
	Height int
}

type Path

type Path struct{}

func (Path) ConvertTilda

func (p Path) ConvertTilda(path string) (string, error)

convertTilda expands paths with `~/` to an actual home directory.

func (Path) GetCacheDir

func (p Path) GetCacheDir() string

func (Path) NormPath

func (p Path) NormPath(path string) (string, error)

Jump to

Keyboard shortcuts

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