Skip to content

bneb/trixel

Repository files navigation

Ternac

A base-3 optical data encoding standard with Reed-Solomon error correction, L-bracket anchor detection, and dynamic luminance calibration.

Architecture

ternac/
├── crates/
│   ├── ternac_core/    # GF(3⁶) arithmetic, RS codec, ECC traits
│   ├── ternac_solver/  # Constraint-based matrix packing with anchor anti-pattern enforcement
│   ├── ternac_render/  # TritMatrix → PNG with L-bracket anchors
│   ├── ternac_cv/      # PNG → TritMatrix with anchor-calibrated luminance
│   └── ternac/         # CLI: encode & decode subcommands

Quick Start

# Encode
cargo run --release -- encode --data "Hello" --output hello.png --color 808080 --ecc 0.3

# Decode
cargo run --release -- decode --input hello.png

Tests

cargo test --workspace

License

MIT

About

A base-3 optical data codec, using ternary luminance logic to embed highly recoverable data seamlessly into custom art, logos, and typography.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors