From 25615d16f93ffafcb19d0940cfab75e1f374b3b9 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Fri, 7 Nov 2025 21:07:12 +0800 Subject: Improve writing. --- _projects/matrix-digital-rain.md | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) (limited to '_projects/matrix-digital-rain.md') 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. -Domsson's Fakesteak 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 Fakesteak. -- 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: -Happy ricing! - Files: [source.tar.gz](source.tar.gz) -- cgit v1.2.3