Show HN: Rust로 만든 Perlin Noise 터미널 애니메이션 (60 FPS, Truecolor)
Source: Hacker News
perlin-terminal
터미널을 위한 아름다운 Perlin 노이즈 애니메이션. 24‑bit 트루컬러와 반 블록 문자(▀)를 사용해 두 배의 세로 해상도로 부드럽고 흐르는 그라디언트를 렌더링합니다.
Features
- Truecolor rendering — 전체 24‑bit RGB 색상 그라디언트
- Double vertical resolution —
▀반 블록 문자를 사용해 셀당 2픽셀 렌더링 - Multiple color themes — Ocean, Fire, Aurora, Matrix
- Smooth animation — 유기적인 흐름을 위한 다중 옥타브 Perlin 노이즈
- 60 FPS — 부드러운 렌더링을 위해 최적화
- Responsive — 터미널 크기 변경을 우아하게 처리
- Clean exit —
Ctrl+C/Q/Esc로 터미널 상태 복구
Install
cargo install --git https://github.com/denisepattenson/perlin-terminal
Or build from source:
git clone https://github.com/denisepattenson/perlin-terminal
cd perlin-terminal
cargo build --release
./target/release/perlin-terminal
Usage
# Default ocean theme
perlin-terminal
# Fire theme
perlin-terminal --theme fire
# Aurora borealis
perlin-terminal --theme aurora
# Matrix‑style green
perlin-terminal --theme matrix
# Customize noise and speed
perlin-terminal --theme fire --scale 0.04 --speed 0.8
Options
| Flag | Default | Description |
|---|---|---|
-t, --theme | ocean | 색상 테마: ocean, fire, aurora, matrix |
-s, --scale | 0.06 | 노이즈 스케일 (작을수록 더 확대) |
--speed | 0.4 | 애니메이션 속도 배율 |
--fps | 60 | 목표 프레임 레이트 |
--seed | 42 | Perlin 노이즈 시드 |
Controls
- Q 또는 Esc — 종료
- Ctrl +C — 종료
Themes
🌊 Ocean
진한 네이비 → 로열 블루 → 청록 → 시안. 차분하고 매혹적입니다.
🔥 Fire
검정 → 진한 빨강 → 주황 → 노랑 → 흰색. 불씨를 바라보는 듯한 느낌.
🌌 Aurora
보라 → 청록 → 초록 → 핑크. 터미널 속 북극광.
💚 Matrix
검정 → 어두운 초록 → 밝은 초록. 바로 그 매트릭스 스타일.
Requirements
- 24‑bit 트루컬러를 지원하는 터미널(대부분의 최신 터미널)
- Rust 1.70+
License
MIT
