library

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CharacterSa = "sam" // Shadja (Red)
	CharacterRi = "rio" // Rishabha (Orange)
	CharacterGa = "ga"  // Gandhara (Gold)
	CharacterMa = "ma"  // Madhyama (Green)
	CharacterPa = "pa"  // Panchama (Blue)
	CharacterDa = "da"  // Dhaivata (Purple)
	CharacterNi = "ni"  // Nishada (Pink)
)

Character name constants The seven musical notes (sargam) representing the standard character set

View Source
const (
	ColorSa = "#FF0000" // Red
	ColorRi = "#FF8800" // Orange
	ColorGa = "#FFD700" // Gold
	ColorMa = "#00FF00" // Green
	ColorPa = "#0088FF" // Blue
	ColorDa = "#8800FF" // Purple
	ColorNi = "#FF0088" // Pink
)

Character color constants (Theme 1 - Original Bright)

View Source
const (
	Theme1ColorSa = "#FF0000" // Pure red
	Theme1ColorRi = "#FF8800" // Bright orange
	Theme1ColorGa = "#FFD700" // Gold
	Theme1ColorMa = "#00FF00" // Pure green
	Theme1ColorPa = "#0088FF" // Bright blue
	Theme1ColorDa = "#8800FF" // Bright purple
	Theme1ColorNi = "#FF0088" // Bright pink
)

Theme 1: Original Bright (100% saturation - high impact, maximum distinction)

View Source
const (
	Theme2ColorSa = "#E78284" // Soft coral - approachable warmth
	Theme2ColorRi = "#EF9F76" // Peach - friendly energy
	Theme2ColorGa = "#E5C890" // Warm sand - comfort
	Theme2ColorMa = "#A6D189" // Sage - growth/trust
	Theme2ColorPa = "#85C1DC" // Sky blue - calm clarity
	Theme2ColorDa = "#CA9EE6" // Lavender - creative
	Theme2ColorNi = "#F4B8E4" // Rose - welcoming
)

Theme 2: Latte Window (Catppuccin-inspired - GUI user friendly, warm pastels)

View Source
const (
	Theme3ColorSa = "#D4787D" // Terracotta rose - earthy warmth
	Theme3ColorRi = "#D89C6A" // Clay orange - natural
	Theme3ColorGa = "#C9B68C" // Wheat - harvest calm
	Theme3ColorMa = "#8FB378" // Moss green - forest trust
	Theme3ColorPa = "#7CA8B8" // River blue - flowing ease
	Theme3ColorDa = "#A888BA" // Dusty iris - twilight
	Theme3ColorNi = "#C895A8" // Dusty mauve - soft dusk
)

Theme 3: Garden Terminal (Earthy natural - reduces terminal intimidation)

View Source
const (
	Theme4ColorSa = "#E18B8B" // Rose quartz - gentle strength
	Theme4ColorRi = "#E5A679" // Amber glow - warm energy
	Theme4ColorGa = "#E6CC94" // Honey - productive sweetness
	Theme4ColorMa = "#99C794" // Balanced green - growth
	Theme4ColorPa = "#78AED4" // Clear sky - open possibility
	Theme4ColorDa = "#B592D4" // Soft violet - creative depth
	Theme4ColorNi = "#DE99B8" // Blush - approachable
)

Theme 4: Cozy Workspace (Modern GUI hybrid - professional warmth)

Variables

This section is empty.

Functions

func All

func All() map[string]LibraryCharacter

All returns all library characters with their metadata

func AllCharacterNames added in v0.2.0

func AllCharacterNames() []string

AllCharacterNames returns all standard character names in order

func AllMicro added in v0.3.0

func AllMicro() map[string]LibraryCharacter

AllMicro returns all micro library characters with their metadata

func List

func List() []string

List returns all available library character names in alphabetical order

func ListMicro added in v0.3.0

func ListMicro() []string

ListMicro returns all available micro character names in alphabetical order

func ListThemes added in v0.2.0

func ListThemes() []string

ListThemes returns all available theme names in sorted order

Types

type CharacterMetadata added in v0.2.0

type CharacterMetadata struct {
	Name        string
	Description string
	Author      string
	Color       string
	Width       int
	Height      int
}

CharacterMetadata holds the non-pattern metadata for a character

type Frame

type Frame struct {
	Name  string
	Lines []string
}

Frame represents a single animation frame

type LibraryCharacter

type LibraryCharacter struct {
	Name        string
	Description string
	Author      string
	Color       string // Single hex color for the entire character (e.g., "#FF4500")
	Patterns    []Frame
	Width       int
	Height      int
}

LibraryCharacter represents a pre-built character from the library

func GenerateFromRegistry added in v0.2.0

func GenerateFromRegistry(metadata CharacterMetadata) LibraryCharacter

GenerateFromRegistry creates a LibraryCharacter from state registry

func GenerateMicroFromRegistry added in v0.3.0

func GenerateMicroFromRegistry(metadata CharacterMetadata) LibraryCharacter

GenerateMicroFromRegistry creates a micro LibraryCharacter from the micro state registry

func Get

func Get(name string) (LibraryCharacter, error)

Get retrieves a library character by name (returns patterns, not built character)

func GetMicro added in v0.3.0

func GetMicro(name string) (LibraryCharacter, error)

GetMicro retrieves a micro library character by name

type ThemeDefinition added in v0.2.0

type ThemeDefinition struct {
	Name        string
	Description string
	Colors      map[string]string // character name -> hex color
}

ThemeDefinition represents a color theme for characters

func GetTheme added in v0.2.0

func GetTheme(name string) (ThemeDefinition, error)

GetTheme returns a theme by name

func (ThemeDefinition) GetColor added in v0.2.0

func (t ThemeDefinition) GetColor(characterName string) (string, error)

GetColor returns the color for a character in this theme

Jump to

Keyboard shortcuts

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