home *** CD-ROM | disk | FTP | other *** search
- #include <scl1.h>
- #include <scl1clor.h>
-
- /***********************************************************
- Shows several dissolve effects for clearing the screen */
-
- main()
- {
- int Color1,Color2;
-
- if(Video()==COLOR)
- {
- Color1=WHITE_BLACK;
- Color2=BROWN_BLACK+HIGHLIGHT;
- }
- else
- {
- Color1=WHITE_BLACK;
- Color2=WHITE_BLACK+HIGHLIGHT;
- }
-
- FillBlock(Color2,0,0,VC_Lines-1,VC_Cols-1,'X'); /* Fill screen with X */
- WaitTime(50); /* 1/2 second delay */
- Dissolve(Color1,DS_BOX,1); /* Clear screen */
- WaitTime(50);
-
- FillBlock(Color2,0,0,VC_Lines-1,VC_Cols-1,'X');
- WaitTime(100);
- Dissolve(Color1,DS_SIDES,1);
- WaitTime(50);
-
- FillBlock(Color2,0,0,VC_Lines-1,VC_Cols-1,'X');
- WaitTime(100);
- Dissolve(Color1,DS_SIX_PARTS,1);
- WaitTime(50);
-
- FillBlock(Color2,0,0,VC_Lines-1,VC_Cols-1,'X');
- WaitTime(100);
- Dissolve(Color1,DS_FOUR_BOXES,1);
- }