mirror of
https://github.com/RGBCube/DOOM-fire-zig
synced 2025-07-29 10:07:45 +00:00
r2022
This commit is contained in:
commit
0677c0fb42
4 changed files with 730 additions and 0 deletions
35
README.md
Normal file
35
README.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
# DOOMFIRE
|
||||
Test your TTY might!
|
||||
|
||||

|
||||
|
||||
The doom-fire algo can push upwards of 180k a frame - results my vary!
|
||||
|
||||
# INSTALL
|
||||
Tested on OX Monterey / M1 w/zig 0.9...unsure if it will work on Win or Linux, sadly, due to TIOCGWINSZ flag. No third party dependencies!
|
||||
|
||||
```
|
||||
$ git clone https://github.com/const-void/DOOM-fire-zig/
|
||||
$ cd DOOM-fire-zig
|
||||
$ zig build run
|
||||
...
|
||||
```
|
||||
|
||||
# Results
|
||||
* iTerm.app - ok
|
||||
* kitty.app - great
|
||||
* Terminal.app - poor
|
||||
* VS Code - great
|
||||
|
||||
# Inspiration / Credits
|
||||
* doom fire - https://github.com/filipedeschamps/doom-fire-algorithm, https://github.com/fabiensanglard/DoomFirePSX/blob/master/flames.html
|
||||
* color layout - https://en.wikipedia.org/wiki/ANSI_escape_code
|
||||
* ansi codes - http://xfree86.org/current/ctlseqs.html
|
||||
* str, zig - https://www.huy.rocks/everyday/01-04-2022-zig-strings-in-5-minutes
|
||||
* emit - https://zig.news/kristoff/where-is-print-in-zig-57e9
|
||||
* term sz, zig - https://github.com/jessrud/zbox/blob/master/src/prim.zig
|
||||
* osx term sz - https://github.com/sindresorhus/macos-term-size/blob/main/term-size.c
|
||||
* px char - https://github.com/cronvel/terminal-kit
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue