diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-11-07 21:07:12 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-11-09 08:32:51 +0800 |
| commit | 25615d16f93ffafcb19d0940cfab75e1f374b3b9 (patch) | |
| tree | 44c015e631cbd0fbeb5ccb6e821874ec4d299d02 /_projects/matrix-digital-rain.md | |
| parent | 1b4674f15331982ac83dbfa646985f62dc3f2e33 (diff) | |
| download | www-25615d16f93ffafcb19d0940cfab75e1f374b3b9.tar.gz | |
Improve writing.
Diffstat (limited to '_projects/matrix-digital-rain.md')
| -rw-r--r-- | _projects/matrix-digital-rain.md | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/_projects/matrix-digital-rain.md b/_projects/matrix-digital-rain.md index 9c7b529..afbfc1f 100644 --- a/_projects/matrix-digital-rain.md +++ b/_projects/matrix-digital-rain.md @@ -6,33 +6,26 @@ thumbnail: thumb.png layout: post --- -The famous digital rain from the movie The Matrix implemented in C for -the Unix terminal without using any GUI/TUI kits: +The famous digital rain from The Matrix, implemented in C. <video style="max-width:100%;" controls="" poster="thumb.png"> <source src="matrix.mp4" type="video/mp4"> </video> -Domsson's <a href="https://github.com/domsson/fakesteak" class="external" -target="_blank" rel="noopener noreferrer">Fakesteak</a> inspired -this project. I added the following features while trying to keep the original -project's simplicity intact as much as possible: +This project is a fork of Domsson's beautiful <a +href="https://github.com/domsson/fakesteak" class="external" target="_blank" +rel="noopener noreferrer">Fakesteak</a>. -- Customize the rain color to match the theme of the setup. -- Support for UTF-32 characters. -- The ghosting effect of old monochrome displays. -- The rain more closely resembles the original from the first movie. +There are three color settings: head, tail, and background. They are configured +by setting the 24-bit RGB channels using `COLOR_*_RED`, `COLOR_*_GRN`, and +`COLOR_*_BLU` definitions. The ghosting effect of old monochrome screens is +achieved by scaling the RGB channels. This results in a rain effect that +closely resembles the original from the first Matrix movie. -To use them, you need a terminal emulator that supports 24-bit RGB colors and -Unicode characters. - -The background, head, and tail colors of the rain can be configured via -`COLOR_BG_*`, `COLOR_HD_*`, and `COLOR_TL_*` settings. The `UNICODE_MIN` and -`UNICODE_MAX` values control the character set used for the rain. For instance, -use `0x30A1` and `0x30F6` for Katakana: +In addition, this implementation supports UTF-32 character sets. The +`UNICODE_MIN` and `UNICODE_MAX` controls the Unicode block used. For +instance, setting them to `0x30A1` and `0x30F6` rains Katakana: <img style="width: 100%;" src="katakana.png" /> -Happy ricing! - Files: [source.tar.gz](source.tar.gz) |
