#: 4306 S3/Languages
12-Jun-90 16:40:57
Sb: #4283-C and Screen I/O
Fm: Zack Sessions 76407,1524
To: TONY CAPPELLINI 76370,2104 (X)
Sure you can do that, but only on a graphics window which supports enough colors.
Here is a code segment:
DWSet(path,8,0,0,40,24,0,1,2);
Select(path);
Palette(path,3,8);
Palette(path,4,36);
Palette(path,5,18);
Palette(path,6,54);
FColor(path,3);
puts("This line is BLUE");
FColor(path,4);
puts("This line is RED");
FColor(path,5);
puts("This line is GREEN");
FColor(path,6);
puts("This line is YELLOW");
.
.
.
The trick is to use the FColor() function to change the current value of
the forground color register.
Zack
|