lloydw/libRocket — pull request #33 by gogoprog (2012-01-09 09:23:52+00:00)
Title: Color multiplier on TiledDecorators and ImageElement

Hi,

I needed to do some color effect on elements so I've made 2 changes :

1. I've added a 'color-multiplier' property on tiled decorators:
bar-decorator:image;
bar-color-multiplier:#12345678;
...
I'm not using this property because I figured out that you can't modify decorators at run-time.
But it's working so maybe it can be useful to someone ;)

2. I've multiplied the texture from an image element by the 'color' property.
This is what I'm using to do some color effects.

Let me know your opinion!

Cheers,
gogoprog