Search This Blog

Showing posts with label draw. Show all posts
Showing posts with label draw. Show all posts

C Program to Animate a Man Drawing Water From Well

This is a c program to animate a man drawing water from well. This is computer graphics lab experiment. The program uses graphics library in c (graphics.h). The output is as follows:


 The program is as follows:

C Program to Draw Rainbow - Computer Graphics Pogram

This is a simple computer graphics lab program in c language to display a rainbow. Since BGI (Borland Graphics Interface) supports only 16 colors, the rainbow cannot be shown in correct colors (VIBGYOR). This is because, colors like violet, indigo and orange are not available in BGI. There fore, we just use some available color instead. The following is the program.

C Program to Draw Malayalam Letter 'Dha' (ധ) Using Bezier Curves

This is a c program to draw Malayalam letter  using Bezier Curves. The program draws the letter
bezier curves with control points
 using Bezier Curves
 using four different Bezier curves. For understandability, individual curves are shown in different colors. The control points for each curve are set in the program and a function bezier() is called with different set of control points twice.