How To Draw Parachute Animation in C Or C++ (Computer Graphics)
PROJECT BY (SIMPLIFY LEARN PROGRAMMING) ON PARACHUTE ANIMATION SOURCE CODE: #include <stdio.h> #include <conio.h> #include <graphics.h> #include <dos.h> int main() { /* request auto detection */ int gdriver = DETECT, gmode, err; int i, x, y; /* initialize graphic mode */ initgraph(&gdriver, &gmode, "C:/TURBOC3/BGI"); err = graphresult(); if (err != grOk) { /* error occurred */ printf("Graphics Error: %s", grapherrormsg(err)); return 0; } x = 50; y = getmaxy() - 100; for (i = 0; i < 900; i++) { /* drawing the balloon first */ setcolor(LIGHTRED); setfillstyle(SOLID_FILL, LIGHTRED); arc(x, y, 0, 180, 40);