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 /_site/projects/matrix-digital-rain/index.html | |
| parent | 1b4674f15331982ac83dbfa646985f62dc3f2e33 (diff) | |
| download | www-25615d16f93ffafcb19d0940cfab75e1f374b3b9.tar.gz | |
Improve writing.
Diffstat (limited to '_site/projects/matrix-digital-rain/index.html')
| -rw-r--r-- | _site/projects/matrix-digital-rain/index.html | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/_site/projects/matrix-digital-rain/index.html b/_site/projects/matrix-digital-rain/index.html index ad4bb97..1b941c7 100644 --- a/_site/projects/matrix-digital-rain/index.html +++ b/_site/projects/matrix-digital-rain/index.html @@ -43,36 +43,26 @@ <h2 class="center" id="title">THE MATRIX DIGITAL RAIN</h2> <h6 class="center">12 JANUARY 2024</h5> <br> - <div class="twocol justify"><p>The famous digital rain from the movie The Matrix implemented in C for -the Unix terminal without using any GUI/TUI kits:</p> + <div class="twocol justify"><p>The famous digital rain from The Matrix, implemented in C.</p> <video style="max-width:100%;" controls="" poster="thumb.png"> <source src="matrix.mp4" type="video/mp4" /> </video> -<p>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:</p> +<p>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>.</p> -<ul> - <li>Customize the rain color to match the theme of the setup.</li> - <li>Support for UTF-32 characters.</li> - <li>The ghosting effect of old monochrome displays.</li> - <li>The rain more closely resembles the original from the first movie.</li> -</ul> +<p>There are three color settings: head, tail, and background. They are configured +by setting the 24-bit RGB channels using <code class="language-plaintext highlighter-rouge">COLOR_*_RED</code>, <code class="language-plaintext highlighter-rouge">COLOR_*_GRN</code>, and +<code class="language-plaintext highlighter-rouge">COLOR_*_BLU</code> 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.</p> -<p>To use them, you need a terminal emulator that supports 24-bit RGB colors and -Unicode characters.</p> - -<p>The background, head, and tail colors of the rain can be configured via -<code class="language-plaintext highlighter-rouge">COLOR_BG_*</code>, <code class="language-plaintext highlighter-rouge">COLOR_HD_*</code>, and <code class="language-plaintext highlighter-rouge">COLOR_TL_*</code> settings. The <code class="language-plaintext highlighter-rouge">UNICODE_MIN</code> and -<code class="language-plaintext highlighter-rouge">UNICODE_MAX</code> values control the character set used for the rain. For instance, -use <code class="language-plaintext highlighter-rouge">0x30A1</code> and <code class="language-plaintext highlighter-rouge">0x30F6</code> for Katakana:</p> +<p>In addition, this implementation supports UTF-32 character sets. The +<code class="language-plaintext highlighter-rouge">UNICODE_MIN</code> and <code class="language-plaintext highlighter-rouge">UNICODE_MAX</code> controls the Unicode block used. For +instance, setting them to <code class="language-plaintext highlighter-rouge">0x30A1</code> and <code class="language-plaintext highlighter-rouge">0x30F6</code> rains Katakana:</p> <p><img style="width: 100%;" src="katakana.png" /></p> -<p>Happy ricing!</p> - <p>Files: <a href="source.tar.gz">source.tar.gz</a></p> </div> <p class="post-author right">by Wickramage Don Sadeep Madurange</p> |
