cache

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCached

func IsCached(file string) bool

IsCached checks if the file is colors is cached or not

func LoadCache

func LoadCache(source string) (material.Quantized, error)

LoadCache tries to load cached colors for this image

func SaveCache

func SaveCache(source string, output material.Quantized) error

SaveCache saves output colors to cache dir

func SaveState

func SaveState(source string, output material.Quantized) error

SaveState saves state to state dir

Types

type State

type State struct {
	Path      string             `json:"filename"`
	Quantized material.Quantized `json:"quantized"`
}

State is the current generation state

func LoadState

func LoadState() (State, error)

LoadState saves state to state dir

Jump to

Keyboard shortcuts

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