I'm looking to generate a colour map like the image below and display it on the screen. Any/all guidance welcome, but the thing I'm trying to figure out right now is the math behind it (with respect to the RGB values). It seems that as you move horizontally, the RGB values all change relative to each other (i.e. higher red, lower blue/green), and then as you move vertically, the RGB values all change collectively (i.e. all move towards the colour being grey). I'm not sure how to code this though and I can't even seem to find an example somewhere on Google - maybe I'm not searching for the correct terms. Anyways, thanks in advance for any help!

New Topic/Question
Reply


MultiQuote







|