I loaded stl file. and now I want apply color in linear gradient as shown in image.
Hi! Have a look at this SO answer: