Documentation
¶
Index ¶
- func ColorAtoi(s string) uint8
- func GenerateColorGrid(img image.Image, threadColors []common.ThreadColor, getNearestColor bool) [][]common.ThreadColor
- func GenerateGrid(img image.Image, threadColors []common.ThreadColor) [][]string
- func GetPartialPalette(img image.Image, threadColors []common.ThreadColor, k int) []common.ThreadColor
- func LoadImage(filePath string) (image.Image, error)
- func LoadThreadColors(filePath string) ([]common.ThreadColor, error)
- func ReduceColors(img image.Image, palette []common.ThreadColor) image.Image
- func ResizeImage(img image.Image, newHeight int) image.Image
- func SaveImage(filePath string, img image.Image) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateColorGrid ¶
func GenerateColorGrid(img image.Image, threadColors []common.ThreadColor, getNearestColor bool) [][]common.ThreadColor
func GenerateGrid ¶
func GenerateGrid(img image.Image, threadColors []common.ThreadColor) [][]string
func GetPartialPalette ¶
func GetPartialPalette(img image.Image, threadColors []common.ThreadColor, k int) []common.ThreadColor
func LoadThreadColors ¶
func LoadThreadColors(filePath string) ([]common.ThreadColor, error)
func ReduceColors ¶
func ResizeImage ¶
ResizeImage resizes the image to the specified height while maintaining aspect ratio.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.