Closed igorko closed 11 years ago
A dying system? https://github.com/mana/mana/tree/master/tools/dyecmd
Using SDL, one can reset the RGB values of the image for simple-colors pixels. http://doc.manasource.org/image_dyeing_system
@clintbellanger this util converts png and creates another one. Do we need to save this behavior, or maybe convert on-the-fly?
We won't do any color conversions on the fly. Just use different images.
I don't think color-swapping would be good anyway, especially for a metallic object like steel armor. When the object is rendered, its surface might reflect parts of itself. And I think such an effect would be hard to capture with a color-swap.
@igorko While I'm completely out of this point, the tool was only a reference in term of code, not in term of tool to use on the fly, just in case.
@Bertram25 Well, I didn't mean tool itself. I meant the algorithm of it's work. @clintbellanger Ok, making different image is not so bad.
Does SDL 1.2 provide the fast way to change sprite color? So we don't need to recreate images with different colors. I'm talking about creating red/green etc.. armor at runtime from current silver armor.