answersLogoWhite

0

#include

#include

#include

#include

#include

#include

void fill(int x,int y,int c,int bon);

void main()

{

clrscr();

int gdriver=DETECT,gmode;

initgraph(&gdriver,&gmode,"");

setcolor(WHITE);

line(0,316,640,316);

bar(297,170,300,316);

bar(195,170,297,173);

setcolor(8);

circle(190,170,5);

floodfill(190,170,8);

setcolor(WHITE);

bar(184,170,179,173);

bar(177,170,180,176);

bar(189,164,191,160);

bar(186,160,194,158);

line(150,315,210,315);

line(150,315,150,260);

line(210,315,210,260);

line(147,257,210,260);

line(213,257,210,260);

getch();

setcolor(BLUE);

for(int j=178;j<=314;j++)

{

line(179,178,179,j);

line(178,178,178,j);

delay(20);

}

int b=1;

for(int i=314;i>260;i--)

{

setcolor(0);

line(179,314-b,179,314-b);

line(178,314-b,178,314-b);

fill(178,i,1,15);

b++;

}

setcolor(0);

line(179,178,179,260);

line(178,178,178,260);

getch();

closegraph();

}

void fill(int x,int y,int c,int bon)

{

int curr=getpixel(x,y);

if(curr!=c)

{

if(curr!=bon)

{

putpixel(x,y,c);

fill(x+1,y,c,bon);

fill(x-1,y,c,bon);

delay(2);

}

}

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Does a towel slow slow down a bucket from filling up?

Yes, a towel can slow down a bucket from filling up because the towel will absorb some of the water before it reaches the bottom of the bucket. This reduces the speed at which the water accumulates in the bucket.


How did the Incas get there water?

They got their water by going down to the river wit a bucket and filling it up


How did Inca get there water?

They got their water by going down to the river wit a bucket and filling it up


How does a tipping bucket water fountain work?

A tipping bucket water fountain works by filling up a bucket with water until it reaches a certain level, causing the bucket to tip and release the water in a controlled manner. This creates a rhythmic and soothing sound as the water flows out and the bucket tips back and forth.


What do you do to become a gardener?

It can be as easy as using an old bucket, filling it with soil, and planting a tomato plant. Just make sure the bottom of the bucket has drain holes. You will also have to water at least twice per day.


Linda was asked to fill a bucket with 10 liters of water which characteristic of matter will she pay attention to?

Linda will pay attention to the volume characteristic of matter when filling the bucket with 10 liters of water. Volume is the amount of space an object or substance occupies, and in this case, it refers to the measurement of how much water can fit in the bucket.


If computer catches fire what to use?

pour a bucket of cold water on it or grab a fire extinguisher and spray it on the computer if it does not work I'm sorry


How can I determine how to find a pool leak?

To find a pool leak, you can conduct a simple bucket test by filling a bucket with pool water and placing it on the pool steps. Monitor the water levels in the bucket and pool over 24 hours. If the pool water level drops more than the bucket, it may indicate a leak. You can also inspect the pool equipment, fittings, and liner for any visible signs of damage or leaks.


How do I access other user buckets?

Bucket 1 Bucket 2 Bucket 3 Bucket 4 Bucket 5 Bucket 5 Bucket 7 Bucket 8 Bucket 9 Bucket 10 Bucket 11 Bucket 12 Bucket 13 Bucket 14 Bucket 15 Bucket 16 Bucket 17 Bucket 18 Bucket 19 Bucket 20


What was plankton's customer's name on spongebob?

Plankton's computer wife bribes Nat to eat at the chum bucket


Where is the icy water on RuneScape?

If you are talking about the 2009 cristmas event then it is obtained by filling a bucket found in the house in the event in the fountain near the tables. It will melt if taken out of the event area.


What do you do with the bucket on vampire curse island?

go outside and fill it with water from the geyser at the front of the castle, then go back to the plant and now your plant will have water. Filling it with rain does not work.