Upload
This commit is contained in:
commit
43352ff262
1291 changed files with 220976 additions and 0 deletions
24
DDSTARS/TEST/KOE.C
Normal file
24
DDSTARS/TEST/KOE.C
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include <stdio.h>
|
||||
#include "graph.h"
|
||||
|
||||
main()
|
||||
{
|
||||
int x,y,z,sx,sy,a;
|
||||
_setvideomode(_VRES16COLOR);
|
||||
for(a=0;a<19200;a++)
|
||||
{
|
||||
x=a%26;
|
||||
y=a/26%26;
|
||||
z=a/26/26%26;
|
||||
x=(x-13)*64;
|
||||
y=(y-13)*64;
|
||||
z=z*32+64;
|
||||
sx=100*x/z+320;
|
||||
sy=100*y/z+240;
|
||||
if(a&1) _setcolor(15);
|
||||
else _setcolor(3+8);
|
||||
_setpixel(sx,sy);
|
||||
}
|
||||
getch();
|
||||
_setvideomode(_DEFAULTMODE);
|
||||
}
|
||||
BIN
DDSTARS/TEST/KOE.EXE
Normal file
BIN
DDSTARS/TEST/KOE.EXE
Normal file
Binary file not shown.
Loading…
Reference in a new issue