News for hackers. Stuff that matters.
Re:Show HN: How to compile C/C++ for WASM, pure Clang, no li... by Asooka on Monday April 11, 2022 @03:32PM (#30993614)
Also, you must work in linear colour space. In OP's case you would have to apply the inverse sRGB transform, do the calculation, then apply the forward sRGB transform. Best if you just work with linear colour end to end, if you have the memory to spare.
Re:Show HN: How to compile C/C++ for WASM, pure Clang, no li... by astrange on Monday April 11, 2022 @08:25PM (#30997039)
Well, it's certainly traditional to get that wrong. Technically nothing's wrong in graphics as long as you get some kind of image out of it, it's just different :)