runecolor

package
v0.0.0-...-f917b33 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSingleColorAttributes

func MakeSingleColorAttributes(attribute color.Attribute) []color.Attribute

Types

type ColoredRune

type ColoredRune struct {
	Symbol          rune
	ColorAttributes []color.Attribute
}

func ConvertRunesToColoredRunes

func ConvertRunesToColoredRunes(runes []rune, colorMap map[rune][]color.Attribute, defaultColor []color.Attribute) []ColoredRune

func ConvertSimpleRunes

func ConvertSimpleRunes(runes []rune) []ColoredRune

func MakeSingleColoredRune

func MakeSingleColoredRune(symbol rune, attribute color.Attribute) ColoredRune

Jump to

Keyboard shortcuts

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