From abf2ae336b780ac206e3f5d55b608703c9d807d5 Mon Sep 17 00:00:00 2001
From: Sadeep Madurange
I began by placing the decay factor in the LSB of the 4-byte RGB value. Let’s -call that RGB-PD. PD plays a somewhat analogous role to an alpha channel in -that both influence transparency. However, they work very differently. So, I -avoided labelling it A so as not to cause confusion:
+I began by placing the decay factor in the LSB of the 4-byte RGB value. The PD +value plays a somewhat analogous role to an alpha channel in that both +influence transparency. However, they work very differently. So, I avoided +labelling it A so as not to cause confusion:
enum {
R, /* Red */
@@ -129,8 +129,7 @@ static inline void insert_code(matrix *mat,
first codepoint and the high four bytes the last. Here, I chose bitwise
operations over unions because, first and foremost, the operations themselves
are trivial and idiomatic, and the UNICODE() macro simplifies the management of
-charsets. The insert_code() function is now ready to take its rightful place
-next to blend().
+charsets.
The init_term() function is the arbiter of this zero-dependency software. It
prepares the graphical environment so that I can interact with it via ANSI
@@ -158,8 +157,6 @@ escape codes instead of unnecessary layers of abstraction:
}
All credit for the terminal control function belongs to Domsson, whose Fakesteak inspired my own three years ago.
-insert_code() seeds the Matrix, blend() creates the old monochrome CRT display nostalgia, and ANSI control sequences paint the screen. The result is a digital rain that captures the original Matrix aesthetic with high visual fidelity:
-- cgit v1.2.3