Image Colour
Posted: Sat Dec 20, 2008 3:41 pm
Hey all,
Basically the problem I have the moment is I'm working on a scrip someone sent me which generates a cube using poly imageFilledPolygon and imagePolygon for the edges. Now the thing is they want shading done on the different sides of the cube, but they're only passing in an individual colour pointer and I'm not sure how I can use this to convert it to a new colour which is darker. Is there a way to return the RGB or hex value off a colour thats been already allocated?
Basically the problem I have the moment is I'm working on a scrip someone sent me which generates a cube using poly imageFilledPolygon and imagePolygon for the edges. Now the thing is they want shading done on the different sides of the cube, but they're only passing in an individual colour pointer and I'm not sure how I can use this to convert it to a new colour which is darker. Is there a way to return the RGB or hex value off a colour thats been already allocated?