-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Cows
This guide shows you how to create your own cow characters for Forgum. It's fun and easy!
A cow file is a simple text file with a .cow extension. It contains ASCII art (pictures made with text characters) that Forgum puts inside the speech bubble.
Create a new file called mycow.cow in the Data/Cows/ folder (inside your Forgum installation).
Here's the simplest cow file:
$the_cow = <<EOC;
\\ ^__^
\\ (oo)\\_______
(__)\\ )\\/\\
||----w |
|| ||
EOCThat's it! Save the file and you're done.
$the_cow = <<EOC;
Your ASCII art goes here
between the EOC markers
EOC-
$the_cow = <<EOC;— Starts the cow art -
EOC— Ends the cow art (must be on its own line) - The art goes in between
You can use special variables in your cow art:
| Variable | What It Does | Example |
|---|---|---|
$eyes |
Shows the eye characters | oo |
$tongue |
Shows the tongue characters | |
$thoughts |
Shows the thought bubble character | \ |
$the_cow = <<EOC;
\\ ^__^
\\ ($eyes)\\_______
(__)\\ )\\/\\
||----w |
|| ||
EOCNow when someone uses forgum -Eyes '@@', the cow will show @@ instead of oo!
$the_cow = <<EOC;
/\\_/\\
( o.o )
> ^ <
/| |\\
(_| |_)
EOC$the_cow = <<EOC;
_____
| |
| [$eyes] |
| ___ |
| | | |
|_|___|_|
| |
[_____]
EOC$the_cow = <<EOC;
.-.
(o o)
| O |
| |
'~~~'
EOC$the_cow = <<EOC;
__
\\ / /
\\/ /
\\ /
/ \\
/ \\
/_____\\
|
[\\0/]
|
/ \\
EOC- Save your
.cowfile inData/Cows/ - Run this command:
forgum -Text "Hello from my cow!" -CowFile 'mycow'Cows should fit in a terminal window. Aim for 20-30 characters wide.
Line up your characters so the cow doesn't look crooked.
Make sure your cow looks good with short and long messages.
Use $eyes and $tongue so people can customize your cow.
Stick to standard ASCII characters (letters, numbers, symbols). Some special characters might not display correctly.
- Look at the existing cows in
Data/Cows/for inspiration - Search online for "ASCII art" — there are thousands of designs!
- Try converting images to ASCII art with online tools
"Cow file not found"
- Make sure the file is in
Data/Cows/ - Make sure the filename is lowercase
- Don't include the
.cowextension in the command
Cow looks weird
- Check for extra spaces or missing characters
- Try a different terminal font
- Make sure the art is properly aligned
Cow is too big
- Make the art smaller
- Increase
maxWidthin your config:$config.output.maxWidth = 80
Back: Configuration | Next: Custom Fortunes →