ascii

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PaletteMintGreen = Palette{
		Name:       "Mint Green",
		Key:        "mint",
		Colours:    []string{"CCFFBD", "7ECA9C", "4b795d"},
		ColourMode: modeVerticalGradient,
	}
	PaletteRetroIcyPole = Palette{
		Name:       "Retro Icy Pole",
		Key:        "retro",
		Colours:    []string{"F38181", "FCE38A", "EAFFD0", "95E1D3"},
		ColourMode: modeVerticalGradient,
	}
	PaletteDesert = Palette{
		Name:       "Dessert",
		Key:        "desert",
		Colours:    []string{"FFACAC", "FFBFA9", "FFEBB4", "FBFFB1"},
		ColourMode: modeVerticalGradient,
	}
	PaletteIceBlue = Palette{
		Name:       "Ice Blue",
		Key:        "ice",
		Colours:    []string{"E3FDFD", "CBF1F5", "A6E3E9", "71C9CE"},
		ColourMode: modeVerticalGradient,
	}
	PaletteSwampGreen = Palette{
		Name:       "Swamp Green",
		Key:        "swamp",
		Colours:    []string{"DDFFBB", "C7E9B0", "B3C99C"},
		ColourMode: modeVerticalGradient,
	}
	PaletteBogGreen = Palette{
		Name:       "BOG™",
		Key:        "bog",
		Colours:    []string{"7DCE13", "70b911", "64a40f"},
		ColourMode: modeVerticalGradient,
	}
	PaletteMatrixGreen = Palette{
		Name:       "Matrix",
		Key:        "matrix",
		Colours:    []string{"00FF41", "00cc34", "009927"},
		ColourMode: modeVerticalGradient,
	}
	PaletteGoogle = Palette{
		Name:       "Google Theme",
		Key:        "google",
		Colours:    []string{"4285F4", "DB4437", "F4B400", "4285F4", "0F9D58", "DB4437"},
		ColourMode: modeLetter,
	}
	White = Palette{
		Name:       "White",
		Key:        "white",
		Colours:    []string{"FFFFFF"},
		ColourMode: modeSingle,
	}
	PaletteRed = Palette{
		Name:       "Red",
		Key:        "red",
		Colours:    []string{"ff0000"},
		ColourMode: modeSingle,
	}
	PaletteGreen = Palette{
		Name:       "Green",
		Key:        "green",
		Colours:    []string{"008000"},
		ColourMode: modeSingle,
	}
	PaletteBlue = Palette{
		Name:       "Blue",
		Key:        "blue",
		Colours:    []string{"0000ff"},
		ColourMode: modeSingle,
	}
	PaletteYellow = Palette{
		Name:       "Yellow",
		Key:        "yellow",
		Colours:    []string{"ffff00"},
		ColourMode: modeSingle,
	}
	PalettePurple = Palette{
		Name:       "Purple",
		Key:        "purple",
		Colours:    []string{"A020F0"},
		ColourMode: modeSingle,
	}
	PaletteRedBlack = Palette{
		Name:       "Red-Black",
		Key:        "red-black",
		Colours:    []string{"ff0000", "36454F"},
		ColourMode: modeAlternate,
	}
	PaletteRedOrange = Palette{
		Name:       "Red Orange",
		Key:        "red-orange",
		Colours:    []string{"ff0000", "FF5733"},
		ColourMode: modeAlternate,
	}
	PalettePizza = Palette{
		Name:       "Pizza Mode",
		Key:        "pizza",
		Colours:    []string{"008c45", "f4f5f0", "cd212a"},
		ColourMode: modeHorizontalGradient,
	}
	PalettePatriot = Palette{
		Name:       "Patriot Mode",
		Key:        "patriot",
		Colours:    []string{"ff0000", "FFFFFF", "003472"},
		ColourMode: modePatriot,
	}
)

https://colorhunt.co/palettes/neon

View Source
var DefaultArgs = Args{
	Message: "ascii banner",
	Font:    FontANSIShadow,
	Palette: PaletteDefault,
}
View Source
var FontAMC3Line = "amc3line"
View Source
var FontAMC3Liv1 = "amc3liv1"
View Source
var FontAMCAAA01 = "amcaaa01"
View Source
var FontAMCNeko = "amcneko"
View Source
var FontAMCRazor = "amcrazor"
View Source
var FontAMCRazor2 = "amcrazor2"
View Source
var FontAMCSlash = "amcslash"
View Source
var FontAMCSlider = "amcslider"
View Source
var FontAMCThin = "amcthin"
View Source
var FontAMCTubes = "amctubes"
View Source
var FontAMCUntitled = "amcuntitled"
View Source
var FontANSIRegular = "ansiregular"
View Source
var FontANSIShadow = "ansishadow"
View Source
var FontASCIINewRoman = "asciinewroman"
View Source
var FontAcrobatic = "acrobatic"
View Source
var FontAlligator = "alligator"
View Source
var FontAlligator2 = "alligator2"
View Source
var FontAlligator3 = "alligator3"
View Source
var FontAlpha = "alpha"
View Source
var FontAlphabet = "alphabet"
View Source
var FontAmcrazo2 = "amcrazo2"
View Source
var FontAmcslder = "amcslder"
View Source
var FontAmcun1 = "amcun1"
View Source
var FontArrows = "arrows"
View Source
var FontAvatar = "avatar"
View Source
var FontB1FF = "b1ff"
View Source
var FontBanner = "banner"
View Source
var FontBanner3 = "banner3"
View Source
var FontBanner3D = "banner3d"
View Source
var FontBanner4 = "banner4"
View Source
var FontBarbwire = "barbwire"
View Source
var FontBasic = "basic"
View Source
var FontBear = "bear"
View Source
var FontBell = "bell"
View Source
var FontBenjamin = "benjamin"
View Source
var FontBig = "big"
View Source
var FontBigChief = "bigchief"
View Source
var FontBigMoneyne = "bigmoneyne"
View Source
var FontBigMoneynw = "bigmoneynw"
View Source
var FontBigMoneyse = "bigmoneyse"
View Source
var FontBigMoneysw = "bigmoneysw"
View Source
var FontBigfig = "bigfig"
View Source
var FontBinary = "binary"
View Source
var FontBlock = "block"
View Source
var FontBlocks = "blocks"
View Source
var FontBloody = "bloody"
View Source
var FontBolger = "bolger"
View Source
var FontBraced = "braced"
View Source
var FontBright = "bright"
View Source
var FontBroadway = "broadway"
View Source
var FontBroadwayKB = "broadwaykb"
View Source
var FontBubble = "bubble"
View Source
var FontBulbhead = "bulbhead"
View Source
var FontCalgphy2 = "calgphy2"
View Source
var FontCaligraphy = "caligraphy"
View Source
var FontCaligraphy2 = "caligraphy2"
View Source
var FontCalvinS = "calvins"
View Source
var FontCatwalk = "catwalk"
View Source
var FontChiseled = "chiseled"
View Source
var FontChunky = "chunky"
View Source
var FontCoinstak = "coinstak"
View Source
var FontCola = "cola"
View Source
var FontColossal = "colossal"
View Source
var FontComputer = "computer"
View Source
var FontContessa = "contessa"
View Source
var FontContrast = "contrast"
View Source
var FontCosmic = "cosmic"
View Source
var FontCosmike = "cosmike"
View Source
var FontCrawford = "crawford"
View Source
var FontCrawford2 = "crawford2"
View Source
var FontCrazy = "crazy"
View Source
var FontCricket = "cricket"
View Source
var FontCursive = "cursive"
View Source
var FontCyberlarge = "cyberlarge"
View Source
var FontCybermedium = "cybermedium"
View Source
var FontCybersmall = "cybersmall"
View Source
var FontCygnet = "cygnet"
View Source
var FontDANC4 = "danc4"
View Source
var FontDOSRebel = "dosrebel"
View Source
var FontDWhistled = "dwhistled"
View Source
var FontDancingFont = "dancingfont"
View Source
var FontDecimal = "decimal"
View Source
var FontDefLeppard = "defleppard"
View Source
var FontDefault = FontANSIShadow
View Source
var FontDeltaCorpsPriest1 = "deltacorpspriest1"
View Source
var FontDiamond = "diamond"
View Source
var FontDietCola = "dietcola"
View Source
var FontDigital = "digital"
View Source
var FontDoh = "doh"
View Source
var FontDoom = "doom"
View Source
var FontDotMatrix = "dotmatrix"
View Source
var FontDouble = "double"
View Source
var FontDoubleShorts = "doubleshorts"
View Source
var FontDrPepper = "drpepper"
View Source
var FontEftiChess = "eftichess"
View Source
var FontEftiFont = "eftifont"
View Source
var FontEftiItalic = "eftiitalic"
View Source
var FontEftiPiti = "eftipiti"
View Source
var FontEftiRobot = "eftirobot"
View Source
var FontEftiWall = "eftiwall"
View Source
var FontEftiWater = "eftiwater"
View Source
var FontEftitalic = "eftitalic"
View Source
var FontElectronic = "electronic"
View Source
var FontElite = "elite"
View Source
var FontEpic = "epic"
View Source
var FontF1Row = "f1row"
View Source
var FontF3D = "f3d"
View Source
var FontF3DASCII = "f3dascii"
View Source
var FontF3DDiagonal = "f3ddiagonal"
View Source
var FontF3x5 = "f3x5"
View Source
var FontF4Max = "f4max"
View Source
var FontF5LineOblique = "f5lineoblique"
View Source
var FontFender = "fender"
View Source
var FontFilter = "filter"
View Source
var FontFireFontk = "firefontk"
View Source
var FontFireFonts = "firefonts"
View Source
var FontFlipped = "flipped"
View Source
var FontFlowerPower = "flowerpower"
View Source
var FontFourTops = "fourtops"
View Source
var FontFunFace = "funface"
View Source
var FontFunFaces = "funfaces"
View Source
var FontFuzzy = "fuzzy"
View Source
var FontGeorgi16 = "georgi16"
View Source
var FontGeorgia11 = "georgia11"
View Source
var FontGhost = "ghost"
View Source
var FontGhoulish = "ghoulish"
View Source
var FontGlenyn = "glenyn"
View Source
var FontGoofy = "goofy"
View Source
var FontGothic = "gothic"
View Source
var FontGraceful = "graceful"
View Source
var FontGradient = "gradient"
View Source
var FontGraffiti = "graffiti"
View Source
var FontGreek = "greek"
View Source
var FontHalfiwi = "halfiwi"
View Source
var FontHenry3D = "henry3d"
View Source
var FontHex = "hex"
View Source
var FontHieroglyphs = "hieroglyphs"
View Source
var FontHollywood = "hollywood"
View Source
var FontHorizontalLeft = "horizontalleft"
View Source
var FontHorizontalRight = "horizontalright"
View Source
var FontICL1900 = "icl1900"
View Source
var FontImpossible = "impossible"
View Source
var FontInvita = "invita"
View Source
var FontIsometric1 = "isometric1"
View Source
var FontIsometric2 = "isometric2"
View Source
var FontIsometric3 = "isometric3"
View Source
var FontIsometric4 = "isometric4"
View Source
var FontItalic = "italic"
View Source
var FontIvrit = "ivrit"
View Source
var FontJSBlockLetters = "jsblockletters"
View Source
var FontJSBracketLetters = "jsbracketletters"
View Source
var FontJSCapitalCurves = "jscapitalcurves"
View Source
var FontJSCursive = "jscursive"
View Source
var FontJSStickLetters = "jsstickletters"
View Source
var FontJacky = "jacky"
View Source
var FontJazmine = "jazmine"
View Source
var FontJerusalem = "jerusalem"
View Source
var FontKatakana = "katakana"
View Source
var FontKban = "kban"
View Source
var FontKeyboard = "keyboard"
View Source
var FontKnob = "knob"
View Source
var FontKonto = "konto"
View Source
var FontKontoSlant = "kontoslant"
View Source
var FontLCD = "lcd"
View Source
var FontLarry3D = "larry3d"
View Source
var FontLarry3D2 = "larry3d2"
View Source
var FontLean = "lean"
View Source
var FontLetters = "letters"
View Source
var FontLilDevil = "lildevil"
View Source
var FontLineBlocks = "lineblocks"
View Source
var FontLinux = "linux"
View Source
var FontLockergnome = "lockergnome"
View Source
var FontMadrid = "madrid"
View Source
var FontMarquee = "marquee"
View Source
var FontMaxfour = "maxfour"
View Source
var FontMerlin1 = "merlin1"
View Source
var FontMerlin2 = "merlin2"
View Source
var FontMike = "mike"
View Source
var FontMini = "mini"
View Source
var FontMirror = "mirror"
View Source
var FontMnemonic = "mnemonic"
View Source
var FontModular = "modular"
View Source
var FontMorse = "morse"
View Source
var FontMorse2 = "morse2"
View Source
var FontMoscow = "moscow"
View Source
var FontMshebrew210 = "mshebrew210"
View Source
var FontMuzzle = "muzzle"
View Source
var FontNScript = "nscript"
View Source
var FontNTGreek = "ntgreek"
View Source
var FontNVScript = "nvscript"
View Source
var FontNancyj = "nancyj"
View Source
var FontNancyjFancy = "nancyjfancy"
View Source
var FontNancyjImproved = "nancyjimproved"
View Source
var FontNancyjUnderlined = "nancyjunderlined"
View Source
var FontNipples = "nipples"
View Source
var FontO8 = "o8"
View Source
var FontOS2 = "os2"
View Source
var FontOctal = "octal"
View Source
var FontOgre = "ogre"
View Source
var FontOldBanner = "oldbanner"
View Source
var FontPatorjkHeX = "patorjkhex"
View Source
var FontPatorjksCheese = "patorjkscheese"
View Source
var FontPawp = "pawp"
View Source
var FontPeaks = "peaks"
View Source
var FontPeaksSlant = "peaksslant"
View Source
var FontPebbles = "pebbles"
View Source
var FontPepper = "pepper"
View Source
var FontPoison = "poison"
View Source
var FontPuffy = "puffy"
View Source
var FontPuzzle = "puzzle"
View Source
var FontPyramid = "pyramid"
View Source
var FontRammstein = "rammstein"
View Source
var FontRectangles = "rectangles"
View Source
var FontRedPhoenix = "redphoenix"
View Source
var FontRelief = "relief"
View Source
var FontRelief2 = "relief2"
View Source
var FontRev = "rev"
View Source
var FontReverse = "reverse"
View Source
var FontRoman = "roman"
View Source
var FontRot13 = "rot13"
View Source
var FontRotated = "rotated"
View Source
var FontRounded = "rounded"
View Source
var FontRowanCap = "rowancap"
View Source
var FontRozzo = "rozzo"
View Source
var FontRunic = "runic"
View Source
var FontRunyc = "runyc"
View Source
var FontSBlood = "sblood"
View Source
var FontSLScript = "slscript"
View Source
var FontSantaClara = "santaclara"
View Source
var FontScript = "script"
View Source
var FontSerifcap = "serifcap"
View Source
var FontShadow = "shadow"
View Source
var FontShimrod = "shimrod"
View Source
var FontShort = "short"
View Source
var FontSlant = "slant"
View Source
var FontSlantRelief = "slantrelief"
View Source
var FontSlide = "slide"
View Source
var FontSmall = "small"
View Source
var FontSmallCaps = "smallcaps"
View Source
var FontSmallIsometric1 = "smallisometric1"
View Source
var FontSmallKeyboard = "smallkeyboard"
View Source
var FontSmallPoison = "smallpoison"
View Source
var FontSmallScript = "smallscript"
View Source
var FontSmallShadow = "smallshadow"
View Source
var FontSmallSlant = "smallslant"
View Source
var FontSmallTengwar = "smalltengwar"
View Source
var FontSmisome1 = "smisome1"
View Source
var FontSmkeyboard = "smkeyboard"
View Source
var FontSmpoison = "smpoison"
View Source
var FontSmscript = "smscript"
View Source
var FontSmshadow = "smshadow"
View Source
var FontSmslant = "smslant"
View Source
var FontSmtengwar = "smtengwar"
View Source
var FontSoft = "soft"
View Source
var FontSpeed = "speed"
View Source
var FontSpliff = "spliff"
View Source
var FontSrelief = "srelief"
View Source
var FontStacey = "stacey"
View Source
var FontStampate = "stampate"
View Source
var FontStampatello = "stampatello"
View Source
var FontStandard = "standard"
View Source
var FontStarStrips = "starstrips"
View Source
var FontStarWars = "starwars"
View Source
var FontStellar = "stellar"
View Source
var FontStforek = "stforek"
View Source
var FontStickLetters = "stickletters"
View Source
var FontStop = "stop"
View Source
var FontStraight = "straight"
View Source
var FontStrongerThanAll = "strongerthanall"
View Source
var FontSubZero = "subzero"
View Source
var FontSwampLand = "swampland"
View Source
var FontSwan = "swan"
View Source
var FontSweet = "sweet"
View Source
var FontTHIS = "this"
View Source
var FontTanja = "tanja"
View Source
var FontTengwar = "tengwar"
View Source
var FontTerm = "term"
View Source
var FontTest1 = "test1"
View Source
var FontTheEdge = "theedge"
View Source
var FontThick = "thick"
View Source
var FontThin = "thin"
View Source
var FontThorned = "thorned"
View Source
var FontThreePoint = "threepoint"
View Source
var FontTicks = "ticks"
View Source
var FontTicksSlant = "ticksslant"
View Source
var FontTiles = "tiles"
View Source
var FontTinkerToy = "tinkertoy"
View Source
var FontTombstone = "tombstone"
View Source
var FontTrain = "train"
View Source
var FontTrek = "trek"
View Source
var FontTsalagi = "tsalagi"
View Source
var FontTubular = "tubular"
View Source
var FontTwisted = "twisted"
View Source
var FontTwoPoint = "twopoint"
View Source
var FontUSAFlag = "usaflag"
View Source
var FontUnivers = "univers"
View Source
var FontVarsity = "varsity"
View Source
var FontWavy = "wavy"
View Source
var FontWeird = "weird"
View Source
var FontWetLetter = "wetletter"
View Source
var FontWhimsy = "whimsy"
View Source
var FontWow = "wow"
View Source
var PaletteDefault = White
View Source
var ProfileMap = map[string]Palette{
	"mint":       PaletteMintGreen,
	"matrix":     PaletteMatrixGreen,
	"bog":        PaletteBogGreen,
	"swamp":      PaletteSwampGreen,
	"ice":        PaletteIceBlue,
	"desert":     PaletteDesert,
	"retro":      PaletteRetroIcyPole,
	"google":     PaletteGoogle,
	"default":    PaletteDefault,
	"red":        PaletteRed,
	"green":      PaletteGreen,
	"blue":       PaletteBlue,
	"yellow":     PaletteYellow,
	"purple":     PalettePurple,
	"red-black":  PaletteRedBlack,
	"red-orange": PaletteRedOrange,
	"pizza":      PalettePizza,
	"patriot":    PalettePatriot,
}

Functions

func GetFonts added in v0.2.1

func GetFonts() []string

func MatchFont added in v0.2.2

func MatchFont(name string) string

func ParseFlf

func ParseFlf(fontName string, gz string) (*font, error)

ParseFlf parses a FIGlet font file

func Print

func Print(args Args)

func Random

func Random(args Args)

Types

type Args

type Args struct {
	Message    string
	Font       string
	Palette    Palette
	ColourMode ColourMode
	Trim       bool
	Verbose    bool
}

type ColourMode

type ColourMode int64

func GetColourMode

func GetColourMode(p string) ColourMode

type Palette

type Palette struct {
	Name       string
	Key        string
	Colours    []string // List of Hex Codes to use in scheme
	ColourMode ColourMode
}

func GetPalette

func GetPalette(p string) Palette

func (*Palette) IsEmpty

func (c *Palette) IsEmpty() bool

Jump to

Keyboard shortcuts

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