C program to Draw Stars in Night Sky

C program to Draw Stars in Night Sky

Here, you will get the program code to draw stars in night sky using C graphics. To making this night sky program we will be using various graphics functions from graphics.h header file.

draw stars in night sky

 

In this program, we will draw hundreds of blinking stars in the night sky. We will use putpixel graphics function to make stars.
For example:-
putpixel(200,200,15);
Here first parameter is x coordinate, second parameter is y coordinate, and last parameter is color of pixel.

C program Code to Draw Stars in Night Sky

Output

night sky drawing C graphics

 

Read Also

Flying balloon program in C

Text Animation Program in C

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top