Hello,

I have wrote code to display moon illuminated disc in the sky using
API's, i want to make crescent inclined like a real moon in the sky.
in fact want to rotate moon with an angle to left or right.

You need to use the trigonometrical functions SIN and COS for all that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.