| Crates.io | playbill |
| lib.rs | playbill |
| version | 0.1.6 |
| created_at | 2025-11-18 23:23:47.952729+00 |
| updated_at | 2025-11-19 06:45:32.918054+00 |
| description | ASCII art title generator with random gradient effects |
| homepage | https://github.com/coryzibell/playbill |
| repository | https://github.com/coryzibell/playbill |
| max_upload_size | |
| id | 1939123 |
| size | 4,364,761 |
ASCII art title generator with random gradient effects.
In the sprawl of identical terminals, your mark matters. Every run gets a face, random font-face and color bleeding different each time. They can copy the code, but they can't copy the signature. That's yours.
Add this to your Cargo.toml:
[dependencies]
playbill = "0.1.3"
use playbill;
fn main() {
// Print a title with version
playbill::print_title("MyApp", Some("1.0.0"));
// Print a title without version
playbill::print_title("Hello", None);
}
Run the included example:
cargo run --example demo
Every run produces a different font and color gradient. Here are some examples:
::::::::::. ::: :::. .-:. ::-.:::::::. ::: ::: :::
`;;;```.;;; ;;; ;;`;; ';;. ;;;;' ;;;'';;' ;;; ;;; ;;;
`]]nnn]]' [[[ ,[[ '[[, '[[,[[[' [[[__[[\.[[[ [[[ [[[
$$$"" $$' c$$$cc$$$c c$$" $$""""Y$$$$$ $$' $$'
888o o88oo,.__ 888 888, ,8P"` _88o,,od8P888o88oo,.__o88oo,.__
YMMMb """"YUMMM YMM ""` mM" ""YUMMMP" MMM""""YUMMM""""YUMMM
,--.-,,-,--, ,----. _,.---._
/==/ /|=| | ,-.--` , \ _.-. _.-. ,-.' , - `.
|==|_ ||=|, | |==|- _.-` .-,.'| .-,.'| /==/_, , - \
|==| ,|/=| _| |==| `.-. |==|, | |==|, | |==| .=. |
|==|- `-' _ | /==/_ , / |==|- | |==|- | |==|_ : ;=: - |
|==| _ | |==| .-' |==|, | |==|, | |==| , '=' |
|==| .-. ,\ |==|_ ,`-._ |==|- `-._ |==|- `-._ \==\ - ,_ /
/==/, //=/ | /==/ , / /==/ - , ,/ /==/ - , ,/ '.='. - .'
`--`-' `-`--` `--`-----`` `--`-----' `--`-----' `--`--''
_ (`-') (`-') _ <-.(`-') _
\-.(OO ) <-. (OO ).-/ .-> __( OO) (_) <-. <-.
_.' \ ,--. ) / ,---. ,--.' ,-.'-'---.\ ,-(`-') ,--. ) ,--. )
(_...--'' | (`-') | \ /`.\ (`-')'.' /| .-. (/ | ( OO) | (`-') | (`-')
| |_.' | | |OO ) '-'|_.' | (OO \ / | '-' `.) | | ) | |OO ) | |OO )
| .___.' (| '__ | (| .-. | | / /) | /`'. | (| |_/ (| '__ | (| '__ |
| | | |' | | | | `-/ /` | '--' / | |'-> | |' | |'
`--' `-----' `--' `--' `--' `------' `--' `-----' `-----'
__ ___ ___ _
.'|=| | .'| .'|=|`. | | | | .'|=| `. .'| .'| .'|
.' | | | .' | .' | | `. `. |_| .' .' | | .' .' | .' | .' |
| |=|.' | | | |=| | `. .' | |=|'. | | | | | |
| | | | ___ | | | | | | | | | | | | | | ___ | | ___
|___| |___|=|_.' |___| |___| |___| |___|=|_.' |___| |___|=|_.' |___|=|_.'
The library embeds FIGlet font files (.flf) at compile time using a build script. Fonts are compressed with zstd to minimize binary size. At runtime, a random font and gradient are selected to create a unique appearance for each run.
Every invocation produces a different visual style - same text, different font and color scheme.
Place additional .flf (FIGlet) font files in the fonts/ directory before building. The build script will automatically include them.
figlet-rs - FIGlet font renderingcolored - Terminal color supportcolorgrad - Gradient color generationrand - Random selectionzstd - Font compressionanyhow - Error handlingMIT OR Apache-2.0