Quest for the Perfect Color
summary
Project integrates OkLab and display P3 into React Native using the CSS4 gamut mapping algorithm and an RFC targeting core plus a community package for reanimated. Benchmark shows JavaScript CSS4 mapping takes ~800 μs for 99% of P3→sRGB colors on a Samsung J3; a C++ build is ~20× faster on an M2. OKLCH exposes true lightness (example: dark blue <50, light green >50) so contrast checks and gradients become predictable. Plan: P3→sRGB conversion, JavaScript OkLab API, then a C++ color library for performance.
AI-written summary · about
