Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <math.h>
- #include <iostream>
- #include "graphics.h"
- void draw_menu(void)
- {
- int x;
- for (x=0;x<256;x++) { setcolor(COLOR(x,255,0)); line(x,0,x,30);}
- for (x=0;x<256;x++) { setcolor(COLOR(255,255-x,0)); line(255+x,0,255+x,30);}
- for (x=0;x<256;x++) { setcolor(COLOR(255,0,x)); line(510+x,0,510+x,30);}
- for (x=0;x<256;x++) { setcolor(COLOR(0,255,255-x)); line(255-x,30,255-x,60);}
- for (x=0;x<256;x++) { setcolor(COLOR(0,x,255)); line(510-x,30,510-x,60); }
- for (x=0;x<256;x++) { setcolor(COLOR(255-x,0,255)); line(765-x,30,765-x,60);}
- setcolor(COLOR(255,255,255));
- outtextxy(5,600,"f - wybór koloru rysowania");
- outtextxy(5,615,"b - wybór koloru wypelniania");
- outtextxy(5,630,"l - rysowanie linii");
- outtextxy(200,600,"r - rysowanie prostokata");
- outtextxy(200,615,"a - rysowanie wype³nionego prostokata");
- outtextxy(200,630,"c - rysowanie okrêgu");
- outtextxy(470,600,"w - zapis do pliku");
- outtextxy(470,615,"o - odczyt z pliku");
- outtextxy(470,630,"esc - wyjscie");
- outtextxy(650,615,"Aktualne:");
- setcolor(COLOR(255,255,255));
- rectangle(1,62,798,598);
- }
- int main( )
- {
- draw_menu();
- return( 0 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement