Let’s say I have a picture, I want to create some variations by changing a color. How to do this ?
I don’t want to apply color filter to a picture, I want to change pixels color pixel by pixel by testing a color pixel if it is let’s say red, i want to turn it to blue.
In Rebol images are also series, so you can use most of the series functions to change/find rgb colors etc.
you can dump all rgba values in an image:
you can also change a continues part:
you can also work on i/rgb and i/alpha, these are binary values (bytes)
and you can use copy to get a part of an image: