Updated Custom Ascii art file format (markdown)

Ossama Hjaji 2019-10-29 22:21:25 +01:00
parent b339db2f48
commit 60d5f1dc63
1 changed files with 25 additions and 32 deletions

@ -1,40 +1,33 @@
This is the format neofetch uses for it's ascii art files and the format you should follow when adding ascii art to neofetch or when specifying custom ascii art with: `--ascii /path/to/ascii_file`. This is the format neofetch uses for it's ascii art files and the format you should follow when adding ascii art to onefetch.
The ascii art is read as plaintext so the only character you have to escape is the backslash `\`.
#### Here's an example: #### Here's an example:
```sh ```sh
# ascii/distro/redstar # resources/racket.ascii
${c1} .. {0} {2}.:--::////::--.`
.oK0l {0} {1}`/yNMMNho{2}////////////:.
:0KKKKd. {0} {1}`+NMMMMMMMMmy{2}/////////////:`
.xKO0KKKKd {0} `-:::{1}ohNMMMMMMMNy{2}/////////////:`
,Od' .d0000l {0} .::::::::{1}odMMMMMMMNy{2}/////////////-
.c;. .'''... ..'. {0} -:::::::::::{1}/hMMMMMMMmo{2}////////////-
.,:cloddxxxkkkkOOOOkkkkkkkkxxxxxxxxxkkkx: {0} .::::::::::::::{1}oMMMMMMMMh{2}////////////-
;kOOOOOOOkxOkc'...',;;;;,,,'',;;:cllc:,. {0}`:::::::::::::{1}/dMMMMMMMMMMNo{2}///////////`
.okkkkd,.lko .......',;:cllc:;,,'''''. {0}-::::::::::::{1}sMMMMMMmMMMMMMMy{2}//////////-
.cdo. :xd' cd:. ..';'',,,'',,;;;,'. {0}-::::::::::{1}/dMMMMMMs{0}:{1}+NMMMMMMd{2}/////////:
. .ddl.;doooc'..;oc;'..';::;,'. {0}-:::::::::{1}+NMMMMMm/{0}:::{1}/dMMMMMMm+{2}///////:
coo;.oooolllllllcccc:'. . {0}-::::::::{1}sMMMMMMh{0}:::::::{1}dMMMMMMm+{2}//////-
.ool''lllllccccccc:::::;. {0}`:::::::{1}sMMMMMMy{0}:::::::::{1}dMMMMMMm+{2}/////`
;lll. .':cccc:::::::;;;;' {0} .:::::{1}sMMMMMMs{0}:::::::::::{1}mMMMMMMd{2}////-
:lcc:'',..';::::;;;;;;;,,. {0} -:::{1}sMMMMMMy{0}::::::::::::{1}/NMMMMMMh{2}//-
:cccc::::;...';;;;;,,,,,,. {0} .:{1}+MMMMMMd{0}::::::::::::::{1}oMMMMMMMo{2}-
,::::::;;;,'. ..',,,,'''. {0} {1}`yMMMMMN/{0}:::::::::::::::{1}hMMMMMh.
........ ...... {0} {1}-yMMMo{0}::::::::::::::::{1}/MMMy-
{0} {1}`/s{0}::::::::::::::::::{1}o/`
{0} ``.---::::---..`
``` ```
#### Rules:
- You have to escape `\`. (eg `\\`)
#### Features: #### Features:
- You can use `${c1}` to `${c6}`to color the ascii. - You can use `{0}` to `{X}`to color the ascii, with X > 0.
- These are evaluated *after* we read the file. - You can pass the flag `-c, --colors 2 5 ...` to set your own colors.
- You can pass the flag `--ascii_colors 1 2 3 4 5 6` to set the colors. - Look at the visual marker to know the color order.
- This changes the values of `${c1}` to `${c6}`
- `--ascii_colors 2 5 6 1` changes `${c1}` to `Green`, `${c2}` to `Magenta` and etc.