home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exbas.arj
/
TEMP
/
05-08.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-01-20
|
549b
|
35 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
CONST Colors = 16
CONST RectWidth = 40
Mode = FGgetmode
FGsetmode 16
BaseColor = 0
MinX = 0
MaxX = RectWidth - 1
FOR RectColor = 0 TO Colors-1
FGpalette RectColor, 0
FGsetcolor RectColor
FGrect MinX, MaxX, 0, 349
MinX = MaxX + 1
MaxX = MaxX + RectWidth
NEXT
WHILE BaseColor < Colors*4
FOR RectColor = 0 TO Colors-1
FGpalette RectColor, BaseColor+RectColor
NEXT
BaseColor = BaseColor + Colors
FGwaitkey
WEND
FGsetmode Mode
FGreset
END