opengl code for umbrella
#1

Please upload umbrella code in opengl ..Thanks
Reply
#2

computer graphics program for a man walking in rain with an umbrella
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
int rhx,rhy,j,i;
clrscr();
initgraph(&gd,&gm,”D:\\TC\\BGI”);
for(i=0;i<500;i+=5)
{
line(20,380,580,380); //platform

if(i%2==0)
{
line(25+i,380,35+i,340); //leftleg
line(45+i,380,35+i,340);//right leg
line(35+i,310,25+i,330);//left hand
delay(20);
}
else
{
line(35+i,380,35+i,340);
line(35+i,310,40+i,330);
delay(20);
}

line(35+i,340,35+i,310); //body
circle(35+i,300,10); //head
line(35+i,310,50+i,330); // hand
line(50+i,330,50+i,280); //umbrella stick
line(15+i,280,85+i,280); //umbrella right

arc(50+i,280,0,180,35); //umbrella body
arc(55+i,330,180,360,5);//umbrella handle
rhx=getmaxx();
rhy=getmaxy();
for(j=0;j<100;j++)
{
outtextxy(random(rhx),random(rhy-50),”|”);

setcolor(WHITE);
}
delay(150);
cleardevice();
}

getch();
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: opengl code for umbrella, seasonal goods umbrella conclusion,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  opengl source code for rocket launch 0 556 08-06-2018, 08:32 AM
Last Post: Guest
  source code of bellman ford algorithm in opengl 0 652 24-05-2018, 12:47 AM
Last Post: Guest
  code for airshow using opengl 0 500 20-05-2018, 11:56 AM
Last Post: Guest
  opengl project for simulation dam 0 575 17-05-2018, 01:57 PM
Last Post: Guest
  project report bellman ford algorithm using opengl 0 668 17-05-2018, 01:39 PM
Last Post: Guest
  code using opengl for selective repeat arq 0 656 12-05-2018, 11:00 PM
Last Post: Guest
  kruskal algorithm using opengl 0 514 11-05-2018, 11:00 AM
Last Post: Guest
  opengl code for life cycle of butterfly 0 590 10-05-2018, 11:07 PM
Last Post: Guest
  opengl program for simulation of a water dam 0 513 06-05-2018, 11:48 AM
Last Post: Guest
Thumbs Down opengl code for flying butterfly 0 497 03-05-2018, 07:28 AM
Last Post: Guest

Forum Jump: