I need to "rotate" colors depending on a certain dependency, how do I calculate this?
I'm using no program, just working with a bitmap in C#
For example:
Every pixel, which is R:193,G:0,B:0
has to become R:0,G60,B:90
Now every other color needs to be switched in relation.
193/0/0
has a neighbor pixel with 205/48/48
, what I'm searching is the relative neighbor pixel of 0/60/90
Is there a way to calculate this, without getting values above 255 and beneath 0?