utils

package
v0.0.0-...-9b14c6c Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateASCIIArt

func GenerateASCIIArt(grayImg *image.Gray) string

GenerateASCIIArt generates ASCII art from a grayscale image

func Grayscale

func Grayscale(img image.Image) *image.Gray

Grayscale converts an image to grayscale

func LoadImage

func LoadImage(filename string) (image.Image, error)

LoadImage loads an image from a file

func RenderASCIIToImage

func RenderASCIIToImage(asciiArt string, file string, fontSize int) error

RenderASCIIToImage renders ASCII art as an image and saves it as a PNG

Types

This section is empty.

Jump to

Keyboard shortcuts

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