alistair
4 years ago
3 changed files with 59 additions and 18 deletions
@ -1,26 +1,44 @@
@@ -1,26 +1,44 @@
|
||||
# colcat |
||||
|
||||
Another lolcat clone. |
||||
Another lolcat clone, in 2020. |
||||
|
||||
This is probably the least feature-complete version of lolcat, (the `cat` clone that makes the output rainbow), but I wrote it anyway and probably won't do any more work on it. |
||||
![image showing square of repeating 'a's in rainbow colour](demo.png) |
||||
|
||||
This is probably the least feature-complete version of lolcat, (the `cat` clone |
||||
that makes the output rainbow), but I wrote it anyway and probably won't do any |
||||
more work on it. I wrote this to test my colours library that I'm writing for a |
||||
simple flat-shaded 2D game I've been working on for a while in bits and pieces. |
||||
|
||||
It breaks neofetch and I'm not sure why, I haven't looked deeply into ANSI escape codes. |
||||
It seems to mostly be compatible with other ANSI codes now. |
||||
|
||||
Options: |
||||
|
||||
colcat -l [rainbow width] |
||||
colcat -h [rainbow width] -v [how much the hue is rotated each line] |
||||
|
||||
Set how many characters it takes to change from red back to red. |
||||
It is the norm for these programs to fuzz the rainbow a bit, and provide more |
||||
options for the frequency and animation options. Mine doesn't have animation, |
||||
and it is deterministic. |
||||
|
||||
It is the norm for these programs to fuzz the rainbow a bit, and provide more options for the frequency and speed (actually come to think of it a sinusoidal would have been a simpler implementation than what I do), and animation options. |
||||
|
||||
I kind of like the look of the uniform rainbow though. |
||||
Compared to other versions this one is slightly more vibrant and uses truecolour. |
||||
This means the rainbow is slightly more accurate, but if your terminal doesn't |
||||
support truecolour then it will output garbage (I don't check any terminfo stuff, |
||||
or check that the output is a tty). |
||||
|
||||
![image showing square of repeating 'a's in rainbow colour](demo.png) |
||||
It is also about 9K larger than jaseg's version, of course it is still more |
||||
performant than the ruby/node/python versions, it just might have bugs. :) |
||||
|
||||
## Installation |
||||
|
||||
git clone https://git.topost.net/alistair/colcat.git |
||||
cd colcat |
||||
make install |
||||
|
||||
Installs `colcat` to `/usr/local/bin/` |
||||
|
||||
## Similar Programs |
||||
|
||||
- [/jaseg/lolcat](https://github.com/jaseg/lolcat) (C) |
||||
- [/busyloop/lolcat](https://github.com/busyloop/lolcat/) (Ruby) |
||||
- [tehmaze/lolcat/](https://github.com/tehmaze/lolcat/) (Python) |
||||
- [jaseg/lolcat](https://github.com/jaseg/lolcat) ( C ) |
||||
- [busyloop/lolcat](https://github.com/busyloop/lolcat/) (Ruby) |
||||
- [tehmaze/lolcat](https://github.com/tehmaze/lolcat/) (Python) |
||||
- [gkbrk](https://gist.github.com/gkbrk/34ed7df44ba1400f31eb73a3f238faa7) (x64 Assembly) |
||||
|
Loading…
Reference in new issue