Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir, i want to show the moon phase program in c graphics...
program should be simple..
its simply show the steps...
Posted

1 solution

How you do this is going to depend on what libraries you have available in your C package! So I can't give you the code...

The basic idea is pretty simple - there is an article here which does it, albeit in .NET which you can't actually use becasue it doesn't support C: Calculate and Draw Moon Phase[^]
The code should give you a basic mechanism though - you would have to provide all the user interface bits and just use the background "work out the actual phase" stuff.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900