[Coco] help with drawing

Robert Gault robert.gault at worldnet.att.net
Sat Feb 19 12:58:47 EST 2005


It is possible but tricky. You need to be more specific about your 
request. Do you want to be in a text mode and draw on the graphics 
screen or be in graphics mode and draw off screen?

The former can be done by telling Basic which hres graphics mode to use 
but not issuing an HSCREEN command. You must also prevent HSCREEN from 
clearing the graphics screen, POKE &HE6C6,&H21. Then for example you can:
POKE&HE6C6,&H21:POKE&HE6,2:HCLS
HLINE(0,0)-(319,191),PSET
Then run the program:
10 HSCREEN2
20 GOTO20
To see how it works.

If you want a graphics on screen while drawing off screen, you will need 
to write code in assembly. However, you may be able to pre draw all 
needed graphics, save them to disk, and load them into memory when your 
program runs. Again this will take a thorough knowledge of the Coco and 
some assembly language.

XYZ wrote:
> I am looking for a way to draw in the background without seeing it then 
> using the hget hput to put it on the screen
> I am using a coco3 on the hscreen2 does any body know of a way to do this
> 
> 



More information about the Coco mailing list