Created
November 30, 2013 08:19
-
-
Save Codeplaza/7716628 to your computer and use it in GitHub Desktop.
Rainbow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //RAINBOW IN C++ | |
| #include<stdio.h> | |
| #include<conio.h> | |
| #include<graphics.h> | |
| #include<dos.h> | |
| void main() | |
| { | |
| int gdriver = DETECT,gmode; | |
| int x,y,i; | |
| initgraph(&gdriver,&gmode,"D:\\TC\\BGI"); | |
| x=getmaxx()/2; | |
| y=getmaxy()/2; | |
| for(i=40;i<200;i++) | |
| { | |
| delay(100);//forth colour pattern strip | |
| setcolor(i/10); | |
| arc(x,y,0,180,i-10); | |
| } | |
| getch(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment