Inverting a value in range [0, 1]

So I’m scripting my own circular color pallette, it works fine so far but the problem is that the value bar is inverted so you would be getting a 100% value when being in the darkest point and 0% in the brightest so to make this work I would need to inverte the v value

To summarize I want something like this:

0 → 1
1 → 0
0.5 → 0.5
0.75 → 0.25
and so on

Any idea?

1-X = invertedX

Simple, just do that.

can’t believe it was just that I was may overthinking thanks a lot

1 Like