glyph

package
v0.0.0-...-d07f0af Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuneMap = map[rune]string{
	'0': `
 ▞████▚ 
▟█  ███▙
▓▓ ▟▛ ▓▓
▒▒▒▒  ▒▒
 ░░░░░░`,
	'1': `
 ▞▚
▟██
 ▓▓
 ▒▒
 ░░`,
	'2': `
▞████▚ 
     ██ 
 ▓▓▓▓▓  
▒▒      
░░░░░░░`,
	'3': `
▞████▚  
     ██
 ▓▓▓▓▓  
     ▒▒
░░░░░░`,
	'4': `
▞▚   ▞▚ 
██   ██ 
▓▓▓▓▓▓▓ 
     ▒▒ 
     ░░`,
	'5': `
▞█████▚ 
██      
▓▓▓▓▓▓▓ 
     ▒▒ 
░░░░░░░`,
	'6': `
 ▞████▚  
▟█       
▓▓▓▓▓▓▓  
▒▒    ▒▒ 
 ░░░░░░`,
	'7': `
▞█████▚ 
     █▙
    ▓▓  
   ▒▒   
   ░░`,
	'8': `
 ▞███▚  
▟█   █▙
 ▓▓▓▓▓  
▒▒   ▒▒
 ░░░░░ `,
	'9': `
 ▞███▚ 
▟█   █▙
 ▓▓▓▓▓▓
     ▒▒
 ░░░░░ `,
	':': `
█▚

▒▒`,
	'-': `

▓▓▓▓▓

`,
	'/': `
    █▞
   █▛
  ▓▓
 ▒▒
░░`,
}

Functions

This section is empty.

Types

type Glyph

type Glyph struct {
	// contains filtered or unexported fields
}

func NewGlyph

func NewGlyph(text string) Glyph

func (*Glyph) Render

func (g *Glyph) Render(style lipgloss.Style) string

type GlyphSet

type GlyphSet struct {
	// contains filtered or unexported fields
}

func NewGlyphSet

func NewGlyphSet() *GlyphSet

func (*GlyphSet) Glyphify

func (g *GlyphSet) Glyphify(msg string) string

Jump to

Keyboard shortcuts

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