colr: Solving color in Rust with entirely too much color science

151 points Single_Virus 29 comments

Hi everyone. I've spent a few weeks deriving a strict type model for color in rust. If you've ever been bitten by gamma encoding or colors not matching in different applications, or if you just want to work with color on the CPU without having to know all the intricate details, this crate could be for you! I personally wrote it for more rigorous image loading, and for integration with my own render graph.

Licensed under Apache 2.0 or MIT at your discretion.

I talk all about the science of color in my blog post below, and touch briefly on how it relates to the crate itself. I encourage reading if you're at all interested in the perception of color or computer graphics. I tried to include fun facts for those of you who already know this stuff.

Solving color in rust with entirely too much color science

This is my first blog post as well so feedback is greatly appreciated!