Zero.projects

ccolor - color computation toolkit engineered entirely in pure ANSI C

Color program was made by pure C with zero.projects - blackmatriXblack/ccolor

Add a comment

Replies

Best
Zero.projects
**ColorMix Suite** is a dual-modality, zero-dependency color computation toolkit engineered entirely in pure ANSI C. It delivers two distinct execution paradigms: a cross-platform CLI utility (`colormix.c`) leveraging ANSI TrueColor escape sequences for terminal-based color mixing, and a native Windows GUI application (`colormix_gui.c`) built with Win32 API and GDI for interactive visual exploration. Both binaries share an identical 32-color palette, deterministic RGB averaging algorithm, and nearest-neighbor Euclidean matching engine—ensuring mathematical consistency across interfaces. The CLI version supports intuitive syntax (`colormix red + cyan`), case-insensitive lookup, and real-time ANSI block rendering, ideal for scripting and headless workflows. The GUI features dynamic combo boxes, a proportional mixing slider (0–100%), live swatch previews, and contextual metadata display within a dark-themed, flicker-free window. Designed for developers, designers, and systems programmers, the suite emphasizes explicit memory management, strict separation of computation and presentation layers, and deterministic resource lifecycle control—requiring no external libraries beyond standard C and native Windows APIs. With a compact binary footprint (~50 KB), sub-millisecond computation latency, and full compatibility from Windows XP to 11 (x86/x64), ColorMix exemplifies efficient native programming. Licensed under MIT, it offers complete transparency for educational use, customization, or integration into larger toolchains. 🎨💻🔧