thank you for answering

why did u assume that i am trying to darken an image ??? i dint say that

i have a color variable and i want to make it darker.

but in any case your code will work in all cases

thank you very much for the code, and cu around

rgds