Hi, all.
A few questions on the use of graphics in grx20. I am coming from Borlad Pascal, and have a lot to learn about graphics.
1) How do I flip back and forth between text and graphics screens? I know how to initialize the graphics, and the computer reverts to text mode when the progrma terminates. But I don't know how to flip between them myself.
2) How do I -- or can I? -- control the 0-15th entries in the palette? I have no trouble changing 16-255, but the bottom 16 seem resistant.
Toby Ewing ewing@iastate.edu 515/294-7856 http://www.agron.iastate.edu/soilphysics/ewing.html Soil Scientist, Iowa State University
Robert P. Ewing wrote:
- How do I flip back and forth between text and graphics
screens? [...]
GrSetMode ( GR_default_graphics, 0, 0, 0, 0, 0 ); (* set graphics mode *) GrSetMode ( GR_default_text, 0, 0, 0, 0, 0 ); (* set text mode *)
Do you mean this?
- How do I -- or can I? -- control the 0-15th entries in
the palette? I have no trouble changing 16-255, but the bottom 16 seem resistant.
GrSetColor ( color, r, g, b );
has the desired effect (for me at least). A cleaner solution would probably be to `FreeColor' the first 16 palette entries, but this does not seem to work.
Somebody knows?
Peter