I use the color red for a rectangle. If a predefined event happens I would like to make this red a bit darker. Mathematically spoken I would like to subtract C'50,50,50' from the normal color.
Is that somehow possible without setting a new color? Sometimes I don't know about the color of a rectangle and so I can't use absolute color values. I only want to make the current color a bit darker, whatever color it originally is.
I made this, not tested:
color darken(color mycolor,int c_offset)
To add comments, please log in or register