LmanTW / canvaz

A simple, easy-to-use image processing library written entirely in Zig.
3 stars 0 forks source link

Handle sRGB encoding/decoding correctly #1

Open leroycep opened 3 weeks ago

leroycep commented 3 weeks ago

Hi there,

I've been writing my own software compositing library (targeting real time rendering for wayland applications). Along the way, I discovered that I was handling sRGB encoding/decoding incorrectly. I did a cursory glance at your code, and it seems like eyou are making the same mistake? You can checkout the color module I've created, and I highly recommend the article What Every Code Should Know About Gamma.

LmanTW commented 3 weeks ago

Cool project! I'm not really into the color space and encoding stuff but I'll try to figure it out, thanks!