image-coloring (original) (raw)
8.15
This is for doing basic color shifting transformations on image? values. It does this by converting them into bitmaps and operating on the pixels. What is returned is a bitmap. So keep that in mind if you are intending to do operations like scale downstream of, say, a change-hue. If you scale up after the hue shift, you’ll see a blury image. If you scale up before, the color shift will have to operate on more pixels.
Shifts the image’s hue by the given amount.
Gives us:
Or:
Gives us:
Whereas the original was:
Overlays the given color onto non-transparent pixels of img.
Gives us:
Whereas the original was:
TODO: Test and document the other functions in main.rkt