Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "kbgi_files/kbgi_lib.h"
- int main()
- {
- K_kbgi();
- K_OpenWindow(0, "Kristina Lakic - Projekat - Zadatak 8");
- K_SetDrawColor(0, KBGI_GREY);
- int a75 = 75, a150 = 150, a175 = 175, a250 = 250, a275 = 275, a350 = 350, a375 = 375, a450 = 450;
- int b75 = 75, b150 = 150, b175 = 175, b250 = 250, b350 = 350, b450 = 450;
- int c150 = 150, c250 = 250, c275 = 275, c350 = 350, c375 = 375, c450 = 450;
- for(int i = 0; i < 99; i++)
- {
- if(i > 0 && i < 50)
- {
- K_Box(0, a150++, a175, a350, a375--);
- K_Box(0, a250, a75++, a450--, a275);
- K_Line(0, b150++, b175, b250, b75);
- K_Line(0, b350, b175, b450--, b75++);
- K_Line(0, c150++, c375--, c250, c275);
- K_Line(0, c350, c375, c450--, c275);
- }
- else if(i > 50 && i < 99)
- {
- K_Box(0, a150--, a175, a350, a375++);
- K_Box(0, a250, a75--, a450++, a275);
- K_Line(0, b150--, b175, b250, b75);
- K_Line(0, b350, b175, b450++, b75--);
- K_Line(0, c150--, c375++, c250, c275);
- K_Line(0, c350, c375, c450++, c275);
- }
- if(i > 97)
- {
- i = 0;
- }
- K_Wait(75);
- K_Clear(0, KBGI_BLACK);
- }
- K_WaitAllClose();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement