The "Matrix Color" formula.

Sep 23, 2021 · 1:18 AM UTC · Twitter Web App

51
2,037
87
10,911
For values in the range 0 to 1, powers larger than 1 push them down and powers smaller than 1 pull them up. So, we are pushing the red+blues down and pulling the greens up a little. Images are pixels, pixels are colors, colors are numbers. And, you can do maths on numbers.
8
33
3
444
Replying to @iquilezles
Am I reading it right in that red and blue look like increasing, and green is decreasing? I would expect it to get more magenta rather than green
1
4
oh nevermind, just saw your other tweet :)
7
Replying to @iquilezles
It still bugs me they did that to the digital/HD versions. I loved the original colors from the theatrical release. But I do admire the mathematical simplicity.
12
Replying to @iquilezles @XorDev
I can make a filter out of this. 🤔
1
Replying to @iquilezles
we could apply this transform to Matrix 4
2
Replying to @iquilezles
wow not even a linear transformation? beginning to think this movie wasnt the math ed tour de force i believed it to be
1
28
Similar to gamma correction. Eye perception is not linear. Plus these non linear formulas do not overflow the color ranges.
1
26
Replying to @iquilezles
wow that's amazing, do you mean they literally used the above formula or its an approximation by you to do the same color effect ?
4
Replying to @iquilezles
Would you say this The Matrix's identity?
1
6
I'd say its the inverse of that.
7