code.pablomurad.com

matrix-ss

Matrix digital rain screensavers for the terminal

README.md raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
# Matrix Screen Saver Collection

[![Python](https://img.shields.io/badge/Python-3.x-blue.svg)](https://www.python.org/)
[![License](https://img.shields.io/badge/License-Open%20Source-green.svg)](LICENSE)
[![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20Unix%20%7C%20macOS-lightgrey.svg)](https://www.linux.org/)
[![Terminal](https://img.shields.io/badge/Terminal-curses%20compatible-orange.svg)](https://docs.python.org/3/library/curses.html)
[![Status](https://img.shields.io/badge/Status-Enhanced-brightgreen.svg)](https://github.com/yourusername/matrix-ss)
[![Versions](https://img.shields.io/badge/Versions-17%20Variants-blue.svg)](README.md#versions)
[![Effects](https://img.shields.io/badge/Effects-Advanced%20Visual-purple.svg)](README.md#advanced-effects)
[![Interactive](https://img.shields.io/badge/Interactive-Audio%20Reactive-red.svg)](README.md#interactive-features)

A comprehensive collection of terminal-based Matrix-style screen savers featuring the iconic "digital rain" effect with advanced visual enhancements, interactive features, and multiple themed variants for every occasion.

## Features

[![Matrix Style](https://img.shields.io/badge/Matrix%20Style-Authentic%20Digital%20Rain-brightgreen.svg)](https://en.wikipedia.org/wiki/The_Matrix)
[![Animation](https://img.shields.io/badge/Animation-20%20FPS-blue.svg)](https://en.wikipedia.org/wiki/Frame_rate)
[![Controls](https://img.shields.io/badge/Controls-Simple%20%28q%20to%20quit%29-orange.svg)](README.md#controls)
[![Performance](https://img.shields.io/badge/Performance-Lightweight%20%26%20Efficient-green.svg)](README.md#technical-details)
[![Variants](https://img.shields.io/badge/Variants-10%20Unique%20Themes-purple.svg)](README.md#versions)
[![Advanced](https://img.shields.io/badge/Advanced-Fade%20%26%20Trail%20Effects-cyan.svg)](README.md#advanced-effects)
[![Interactive](https://img.shields.io/badge/Interactive-Audio%20%26%20Visual-red.svg)](README.md#interactive-features)
[![Katakana](https://img.shields.io/badge/Katakana-Authentic%20Japanese-yellow.svg)](README.md#enhanced-characters)

### Core Features
- ๐ŸŒŸ Authentic Matrix-style digital rain effect
- ๐ŸŽจ 17 unique variants with different themes and effects
- โšก Smooth animation (~20 FPS)
- โŒจ๏ธ Simple controls (press 'q' to quit)
- ๐Ÿง Linux/Unix/macOS compatible
- ๐ŸŽฏ Lightweight and efficient

### Advanced Effects
- ๐Ÿ”ฅ Fire gradient effects (blue โ†’ red โ†’ white)
- ๐ŸŒŠ Wave motion patterns with color transitions
- โšก Glitch effects with system error messages
- ๐ŸŽญ Trail fade effects for realistic motion blur
- ๐Ÿ–ผ๏ธ Progressive image revelation through Matrix rain
- ๐ŸŽต Audio-reactive visual responses (simulated)

### Enhanced Characters
- ๐Ÿ‡ฏ๐Ÿ‡ต Authentic Japanese Katakana characters
- ๐Ÿ”ค Mixed ASCII and Unicode character sets
- ๐ŸŽฒ Dynamic character selection algorithms
- โšก Variable speed columns for realistic flow

## Requirements

[![Python Version](https://img.shields.io/badge/Python-3.x+-blue.svg)](https://www.python.org/downloads/)
[![OS](https://img.shields.io/badge/OS-Linux%20%7C%20Unix%20%7C%20macOS-lightgrey.svg)](https://www.linux.org/)
[![Library](https://img.shields.io/badge/Library-curses-orange.svg)](https://docs.python.org/3/library/curses.html)
[![Dependencies](https://img.shields.io/badge/Dependencies-psutil%20%28optional%29-yellow.svg)](https://pypi.org/project/psutil/)
[![Audio](https://img.shields.io/badge/Audio-pyaudio%20%28optional%29-red.svg)](https://pypi.org/project/PyAudio/)

### Core Requirements
- Python 3.x
- Linux/Unix/macOS terminal
- `curses` library (usually included with Python)

### Optional Dependencies
- `psutil` library (for system monitoring in `matrix_system.py`)
- `pyaudio` or `sounddevice` (for real audio input in `matrix_music.py`)

### Unicode Support
- Terminal with Unicode/UTF-8 support (for Katakana characters in `matrix_enhanced.py`)

## Installation

### Dependencies Installation
```bash
# Install all dependencies
pip install -r requirements.txt

# Or install individually
pip install psutil  # For system monitoring (matrix_system.py)

# Optional: For real audio input (matrix_music.py)
# pip install pyaudio
# pip install sounddevice
```

### Method 1: Direct Download
```bash
# Clone or download the repository
git clone <repository-url>
cd matrix-ss

# Make all scripts executable
chmod +x *.py
```

### Method 2: Manual Setup
```bash
# Download all scripts to your desired location
# (All 10 matrix variants)

# Make executable
chmod +x matrix*.py
```

## Usage

### Basic Usage
```bash
# Classic Collection
python3 matrix.py              # Original green Matrix
python3 matrix_red.py          # Dramatic green + red
python3 matrix_rainbow.py      # Festive rainbow colors
python3 matrix_system.py       # System monitoring

# Enhanced Collection
python3 matrix_enhanced.py     # Katakana + fade effects
python3 matrix_fire.py         # Fire gradient effects
python3 matrix_glitch.py       # Glitch + error messages
python3 matrix_wave.py         # Wave motion patterns
python3 matrix_image.py        # Progressive image reveal
python3 matrix_music.py        # Audio-reactive (simulated)
```

### Quick Start
```bash
# Make all executable and run your favorite
chmod +x *.py
./matrix_enhanced.py           # Recommended for best experience
```

### Controls
- **Press 'q'** to quit the screen saver
- **Ctrl+C** to force exit

## Versions

### Classic Collection

### ๐ŸŸข Classic Matrix (`matrix.py`)
The original Matrix screen saver with authentic green digital rain effect.

```bash
python3 matrix.py
```

**Features:**
- ๐ŸŒŸ Authentic Matrix movie experience
- ๐ŸŸข Green characters only
- ๐ŸŽฌ Nostalgic classic look

### ๐Ÿ”ด Dramatic Matrix (`matrix_red.py`)
Enhanced version with red characters mixed with green for a more dramatic effect.

```bash
python3 matrix_red.py
```

**Features:**
- ๐ŸŸข 80% green characters
- ๐Ÿ”ด 20% red characters
- โšก Dramatic visual impact
- ๐ŸŽญ Perfect for intense moments

### ๐ŸŒˆ Rainbow Matrix (`matrix_rainbow.py`)
Vibrant rainbow version with all colors of the spectrum for festive occasions.

```bash
python3 matrix_rainbow.py
```

**Features:**
- ๐ŸŒˆ 7 rainbow colors (Red, Yellow, Green, Cyan, Blue, Magenta, White)
- ๐ŸŽ‰ Perfect for celebrations and events
- โœจ Vibrant and eye-catching
- ๐ŸŽช Great for demonstrations

### ๐Ÿ–ฅ๏ธ System Monitor Matrix (`matrix_system.py`)
Advanced version that displays real-time system information in the center while Matrix rain falls around it.

```bash
python3 matrix_system.py
```

**Features:**
- ๐Ÿ–ฅ๏ธ Real-time system monitoring (CPU, Memory, Disk, IP, Time, Date, User, Load)
- ๐Ÿ”ด System info displayed in red at center
- ๐ŸŸข Matrix rain falls around the information panel
- โฐ Updates every second
- ๐ŸŽฏ Perfect for system administrators and monitoring

---

### Enhanced Collection

### โญ Enhanced Matrix (`matrix_enhanced.py`) - **RECOMMENDED**
[![New](https://img.shields.io/badge/NEW-Enhanced%20Version-brightgreen.svg)](matrix_enhanced.py)
[![Katakana](https://img.shields.io/badge/Katakana-Authentic%20Japanese-yellow.svg)](matrix_enhanced.py)
[![Fade](https://img.shields.io/badge/Fade-Trail%20Effects-cyan.svg)](matrix_enhanced.py)

The most advanced version with authentic Japanese characters and realistic fade effects.

```bash
python3 matrix_enhanced.py
```

**Features:**
- ๐Ÿ‡ฏ๐Ÿ‡ต Authentic Katakana characters (70%) + ASCII (30%)
- ๐ŸŽญ Realistic trail fade effects
- โšก Variable speed columns
- ๐ŸŒŸ Most authentic Matrix experience
- ๐Ÿ’ซ Character aging and disappearing effects

### ๐Ÿ”ฅ Fire Matrix (`matrix_fire.py`)
[![New](https://img.shields.io/badge/NEW-Fire%20Effects-red.svg)](matrix_fire.py)

Matrix rain with dynamic fire gradient effects that change temperature over time.

```bash
python3 matrix_fire.py
```

**Features:**
- ๐Ÿ”ฅ Dynamic fire gradient (Blue โ†’ Cyan โ†’ Green โ†’ Yellow โ†’ Red โ†’ Magenta โ†’ White)
- ๐ŸŒก๏ธ Heat levels that change over time
- โ„๏ธ Cool and hot zones
- ๐ŸŽจ 7-stage color temperature system

### โšก Glitch Matrix (`matrix_glitch.py`)
[![New](https://img.shields.io/badge/NEW-Glitch%20Effects-purple.svg)](matrix_glitch.py)

Matrix with random glitch effects and system error messages for a cyberpunk feel.

```bash
python3 matrix_glitch.py
```

**Features:**
- โšก Random glitch effects every 5-15 seconds
- ๐Ÿšจ System error messages ("ERROR: SYSTEM BREACH DETECTED")
- ๐ŸŽญ Corrupted character blocks (โ–ˆโ–“โ–’โ–‘)
- ๐Ÿ’ฅ Flashing and color corruption effects
- ๐Ÿ”ด Red alert colors during glitches

### ๐ŸŒŠ Wave Matrix (`matrix_wave.py`)
[![New](https://img.shields.io/badge/NEW-Wave%20Motion-blue.svg)](matrix_wave.py)

Matrix rain influenced by sine wave patterns with dynamic color transitions.

```bash
python3 matrix_wave.py
```

**Features:**
- ๐ŸŒŠ Sine wave motion patterns
- ๐ŸŽจ Color zones based on wave proximity (White โ†’ Cyan โ†’ Blue โ†’ Green)
- โšก Variable speed influenced by wave position
- ใ€ฐ๏ธ Visible wave line indicator
- ๐ŸŒ€ Fluid, organic movement patterns

### ๐Ÿ–ผ๏ธ Image Reveal Matrix (`matrix_image.py`)
[![New](https://img.shields.io/badge/NEW-Image%20Reveal-orange.svg)](matrix_image.py)

Matrix rain that gradually reveals hidden ASCII art with progress tracking.

```bash
python3 matrix_image.py
```

**Features:**
- ๐Ÿ–ผ๏ธ Progressive ASCII art revelation
- ๐Ÿ“Š Real-time decoding progress bar
- ๐ŸŽจ Color-coded revelation stages (Yellow โ†’ White โ†’ Red)
- ๐Ÿ’ฌ "WAKE UP NEO" hidden message
- ๐ŸŽฏ Interactive discovery experience

### ๐ŸŽต Music Matrix (`matrix_music.py`)
[![New](https://img.shields.io/badge/NEW-Audio%20Reactive-red.svg)](matrix_music.py)
[![Real Audio](https://img.shields.io/badge/Audio-Real%20%2B%20Simulated-brightgreen.svg)](matrix_music.py)
[![Smart Detection](https://img.shields.io/badge/Detection-Auto%20Library-blue.svg)](matrix_music.py)

Audio-reactive Matrix that responds to real microphone input or simulated audio with dynamic effects.

```bash
# Basic usage (simulated audio)
python3 matrix_music.py

# For real audio, install dependencies first:
pip install sounddevice numpy
# OR
pip install pyaudio numpy

# Then run with real audio input
python3 matrix_music.py
```

**Features:**
- ๐ŸŽค **Real microphone input** (when libraries installed)
- ๐ŸŽญ **Automatic fallback** to realistic simulation
- ๐ŸŽต Audio level visualization with progress bar
- ๐ŸŽจ Color intensity based on sound (Green โ†’ Yellow โ†’ Red โ†’ Magenta โ†’ White โ†’ Cyan)
- ๐Ÿ’“ Intelligent beat detection with special effects
- โšก Speed changes based on audio intensity
- ๐Ÿ“Š Real-time audio level display
- ๐ŸŽถ "BEAT!" indicator for rhythm detection
- ๐Ÿ”ง **Auto-detection** of available audio libraries (sounddevice/pyaudio)
- ๐Ÿ’ฌ **Status display** showing audio mode for 3 seconds

**Audio Libraries Supported:**
- `sounddevice` + `numpy` (recommended - easier installation)
- `pyaudio` + `numpy` (alternative - more control)
- Automatic simulation if no libraries available

---

### Themed Collection

### ๐Ÿ’Ž Neon Matrix (`matrix_neon.py`)
[![New](https://img.shields.io/badge/NEW-Neon%20Effects-cyan.svg)](matrix_neon.py)
[![Glow](https://img.shields.io/badge/Glow-Pulsing%20Brightness-magenta.svg)](matrix_neon.py)

Matrix with neon glow effects and pulsing brightness for a cyberpunk aesthetic.

```bash
python3 matrix_neon.py
```

**Features:**
- ๐Ÿ’Ž Neon glow effects with variable intensity
- ๐ŸŒŸ Pulsing brightness based on sine waves
- โšก Flash effects and border illumination
- ๐ŸŽจ Multi-intensity color gradients (Dark โ†’ Bright โ†’ White)
- ๐Ÿ’ซ Special neon colors (Magenta, Yellow highlights)
- ๐Ÿ”† Column-based glow intensity system

### ๐Ÿ”ข Binary Matrix (`matrix_binary.py`)
[![New](https://img.shields.io/badge/NEW-Binary%20Only-green.svg)](matrix_binary.py)
[![Authentic](https://img.shields.io/badge/Authentic-Movie%20Style-yellow.svg)](matrix_binary.py)

Pure binary Matrix using only 0s and 1s like in the original movie scenes.

```bash
python3 matrix_binary.py
```

**Features:**
- ๐Ÿ”ข **Only 0s and 1s** - true to the movie
- ๐Ÿ’ฌ Hidden binary messages ("Hello", "Matrix", "Neo", "Wake up")
- ๐Ÿ“Š Real-time binary counter display
- ๐ŸŽฏ Data stream effects with horizontal flows
- ๐Ÿ” Progressive message decoding with progress indicator
- ๐Ÿ’ป Authentic computer code aesthetic

### ๐Ÿ’ป Terminal Matrix (`matrix_terminal.py`)
[![New](https://img.shields.io/badge/NEW-Hacker%20Terminal-red.svg)](matrix_terminal.py)
[![Interactive](https://img.shields.io/badge/Interactive-Command%20Simulation-orange.svg)](matrix_terminal.py)

Simulates a hacker terminal with realistic command execution in the center of Matrix rain.

```bash
python3 matrix_terminal.py
```

**Features:**
- ๐Ÿ’ป **Realistic hacker commands** (nmap, hydra, metasploit, etc.)
- โŒจ๏ธ Simulated typing with realistic speed
- ๐Ÿ“Ÿ System responses and command output
- ๐Ÿ• Real-time timestamp display
- ๐ŸŽญ Terminal window with borders and title
- ๐Ÿ”’ Cybersecurity tool simulation (ethical hacking commands)

### ๐Ÿงฌ DNA Matrix (`matrix_dna.py`)
[![New](https://img.shields.io/badge/NEW-DNA%20Sequences-green.svg)](matrix_dna.py)
[![Scientific](https://img.shields.io/badge/Scientific-Genetic%20Code-blue.svg)](matrix_dna.py)

Matrix displaying DNA sequences with complementary base pairs and genetic information.

```bash
python3 matrix_dna.py
```

**Features:**
- ๐Ÿงฌ **DNA bases only** (A, T, G, C) with authentic color coding
- ๐Ÿ”— **Double helix visualization** with complementary base pairs
- ๐Ÿงช Famous DNA sequences (telomeres, restriction sites)
- ๐Ÿ“Š Real-time base counting and analysis
- ๐ŸŒ€ Animated helix structure with connecting bonds
- ๐Ÿ”ฌ Scientific sequencer interface

### ๐ŸŒ Network Matrix (`matrix_network.py`)
[![New](https://img.shields.io/badge/NEW-Network%20Monitor-blue.svg)](matrix_network.py)
[![Live Data](https://img.shields.io/badge/Live%20Data-Network%20Traffic-cyan.svg)](matrix_network.py)

Matrix displaying real network information and simulated traffic data.

```bash
python3 matrix_network.py
```

**Features:**
- ๐ŸŒ **Real network information** (hostname, IP, connections)
- ๐Ÿ“Š Network traffic visualization and statistics
- ๐Ÿ”Œ Active port monitoring
- ๐Ÿ“ก Simulated packet flows (TCP, UDP, HTTP, SSH, etc.)
- ๐Ÿ“ˆ Real-time traffic level indicator
- ๐Ÿ–ฅ๏ธ Network status monitoring

### ๐Ÿ’ฐ Crypto Matrix (`matrix_crypto.py`)
[![New](https://img.shields.io/badge/NEW-Cryptocurrency-yellow.svg)](matrix_crypto.py)
[![Market Data](https://img.shields.io/badge/Market%20Data-Price%20Tracking-gold.svg)](matrix_crypto.py)

Matrix displaying cryptocurrency prices and market data with trading symbols.

```bash
python3 matrix_crypto.py
```

**Features:**
- ๐Ÿ’ฐ **Cryptocurrency price tracking** (BTC, ETH, ADA, DOT, LINK, XRP)
- ๐Ÿ“ˆ **Price trends** with up/down indicators
- ๐Ÿ’น Market sentiment analysis (Bull/Bear/Sideways)
- ๐ŸŽฏ Crypto symbols rain (โ‚ฟ, ฮž, โ‚ณ, etc.)
- ๐Ÿ“Š Real-time price changes and percentage tracking
- ๐Ÿš€ Market status indicators with emojis

### ๐ŸŒค๏ธ Weather Matrix (`matrix_weather.py`)
[![New](https://img.shields.io/badge/NEW-Weather%20Data-blue.svg)](matrix_weather.py)
[![Meteorological](https://img.shields.io/badge/Meteorological-Climate%20Info-lightblue.svg)](matrix_weather.py)

Matrix displaying weather information with climate-appropriate character effects.

```bash
python3 matrix_weather.py
```

**Features:**
- ๐ŸŒค๏ธ **Complete weather information** (temperature, humidity, pressure, wind)
- ๐ŸŒง๏ธ **Weather-specific characters** (โ˜€๏ธ, โ˜๏ธ, ๐ŸŒง๏ธ, โ›ˆ๏ธ, โ„๏ธ, ๐ŸŒซ๏ธ)
- ๐ŸŽจ **Dynamic colors** based on weather conditions
- โš ๏ธ **Weather alerts** (temperature, wind, UV, visibility warnings)
- ๐ŸŒก๏ธ **Comfort level indicators** (Cold, Cool, Comfortable, Warm, Hot)
- ๐Ÿ“Š Detailed meteorological panel with real-time updates

---

### Complete Version Comparison

| Version | Colors | Special Effects | Best For | Difficulty |
|---------|--------|----------------|----------|------------|
| **Classic Collection** |
| `matrix.py` | Green only | Classic rain | Nostalgia, simplicity | โญ |
| `matrix_red.py` | Green + Red | Dramatic mix | Alerts, intensity | โญ |
| `matrix_rainbow.py` | 7 rainbow colors | Festive colors | Celebrations, demos | โญ |
| `matrix_system.py` | Green + Red + Yellow | System monitoring | Admin work | โญโญ |
| **Enhanced Collection** |
| `matrix_enhanced.py` | Green gradients | Katakana + fade | **Best overall** | โญโญโญ |
| `matrix_fire.py` | Fire gradient | Heat simulation | Visual impact | โญโญ |
| `matrix_glitch.py` | Multi + corruption | Error messages | Cyberpunk feel | โญโญ |
| `matrix_wave.py` | Wave-based | Sine motion | Fluid animation | โญโญโญ |
| `matrix_image.py` | Progressive reveal | ASCII art | Interactive fun | โญโญโญ |
| `matrix_music.py` | Audio-reactive | Beat detection | Parties, music | โญโญโญโญ |
| **Themed Collection** |
| `matrix_neon.py` | Neon gradients | Pulsing glow | Cyberpunk aesthetic | โญโญ |
| `matrix_binary.py` | Green + White | Binary only | Movie authenticity | โญ |
| `matrix_terminal.py` | Multi-colored | Hacker simulation | Educational/Demo | โญโญโญ |
| `matrix_dna.py` | Scientific colors | DNA sequences | Science/Education | โญโญโญ |
| `matrix_network.py` | Traffic-based | Network monitoring | IT/Networking | โญโญ |
| `matrix_crypto.py` | Market-based | Price tracking | Finance/Trading | โญโญ |
| `matrix_weather.py` | Weather-based | Climate data | Weather monitoring | โญโญ |

## How It Works

### Basic Algorithm
The screen saver creates a full-screen terminal animation where:
- Random characters fall from the top of the screen
- Each column has its own falling speed and position
- Characters are displayed with various color schemes
- The effect continues until you press 'q' to exit

### Advanced Features
- **Trail Effects**: Characters fade over time for realistic motion blur
- **Variable Speeds**: Different columns fall at different rates
- **Dynamic Colors**: Color changes based on effects (fire, wave, audio)
- **Interactive Elements**: Progress bars, system info, error messages
- **Unicode Support**: Authentic Japanese Katakana characters

## Technical Details

### Performance
- **Frame Rate**: ~20 FPS (50ms intervals)
- **Memory Usage**: Minimal (< 10MB for most variants)
- **CPU Usage**: Low impact on system performance
- **Terminal**: Uses `curses` library for efficient terminal manipulation

### Character Sets
- **ASCII**: Printable characters (33-126) for compatibility
- **Katakana**: Authentic Japanese characters (ใ‚ขใ‚คใ‚ฆใ‚จใ‚ช...)
- **Special**: Block characters for glitch effects (โ–ˆโ–“โ–’โ–‘)
- **Unicode**: Full UTF-8 support where available

### Color Systems
- **8-Color**: Standard terminal colors (Red, Green, Blue, etc.)
- **Gradients**: Smooth transitions between color states
- **Dynamic**: Real-time color changes based on effects
- **Compatibility**: Works with all curses-compatible terminals

## Troubleshooting

### Common Issues

1. **"curses module not found"**
   ```bash
   # Install python3-curses (Ubuntu/Debian)
   sudo apt-get install python3-curses
   
   # Or for CentOS/RHEL
   sudo yum install python3-curses
   ```

2. **Terminal not supported**
   - Ensure you're using a terminal emulator that supports `curses`
   - Try running in a different terminal (xterm, gnome-terminal, etc.)

3. **Permission denied**
   ```bash
   chmod +x matrix.py
   ```

### Terminal Compatibility

[![xterm](https://img.shields.io/badge/xterm-Supported-brightgreen.svg)](https://invisible-island.net/xterm/)
[![gnome-terminal](https://img.shields.io/badge/gnome--terminal-Supported-brightgreen.svg)](https://help.gnome.org/users/gnome-terminal/)
[![konsole](https://img.shields.io/badge/konsole-Supported-brightgreen.svg)](https://konsole.kde.org/)
[![iTerm2](https://img.shields.io/badge/iTerm2-Supported-brightgreen.svg)](https://iterm2.com/)
[![Alacritty](https://img.shields.io/badge/Alacritty-Supported-brightgreen.svg)](https://alacritty.org/)
[![Windows CMD](https://img.shields.io/badge/Windows%20CMD-Not%20Supported-red.svg)](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmd)

- โœ… xterm
- โœ… gnome-terminal
- โœ… konsole
- โœ… iTerm2 (macOS)
- โœ… Alacritty
- โŒ Windows Command Prompt (not supported)

## Customization

You can modify any of the scripts to change:
- **Speed**: Adjust `time.sleep(0.05)` value
- **Colors**: Modify the color pairs in each script
- **Characters**: Change the range in `random.randint(33, 126)`
- **Frame rate**: Modify the `timeout(100)` value
- **Color distribution**: Adjust the probability ratios in `matrix_red.py`
- **Rainbow colors**: Add/remove colors from the `rainbow_colors` list in `matrix_rainbow.py`

## License

This project is open source. Feel free to modify and distribute as needed.

## Contributing

Contributions are welcome! Feel free to:
- Report bugs
- Suggest improvements
- Submit pull requests

## Acknowledgments

Inspired by the iconic Matrix digital rain effect from the 1999 film "The Matrix" directed by the Wachowskis.

---

**Enjoy your Matrix screen saver experience!** ๐Ÿ•ถ๏ธ