Generate color for pie Graph Fake 3D

Hi, i’m drawing a pie graph, add fake height and scale to create a fake 3D pie graph … all work very well but i need to dynamically generate color for height base on every slice color, to have a darker color …

Did someone can help me to start with that?

turb