---
title: The Matrix digital rain
date: 2024-01-12
author: Wickramage Don Sadeep Madurange
thumbnail: thumb.png
layout: post
---
The famous digital rain from The Matrix, implemented in C.
This project is a fork of Domsson's beautiful Fakesteak.
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.
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:
Files: [source.tar.gz](source.tar.gz)