[Coco] Example basic code for screen grid

Darren A mechacoco at gmail.com
Fri Feb 24 00:31:15 EST 2012


> Andrew, yes it works. Thats almost exactly what I need but I need no white outline around the grid and
> I need about 1/4 of the squares as you have here. Like it needs to be about 1/4 of the squares and bigger.
>
>
> I'll play with this and see what I can do. Thanks so much thats pretty impressive you did that from memory!
>
> Also, Can I get this to be black bordered instead of white bordered?
>
---

Sounds like the semi graphics screen should fit your needs.

CLS0 will black out the screen and keep the black border.

SET(X,Y,5)  where X ranges from 0 to 63 and Y ranges from 0 to 31 will
make pixels white.  RESET(X,Y) will revert them to black.

You could also use POKE with addresses ranging from 1024 to 1535 to
control a four pixel block (2x2) in one operation.

Darren



More information about the Coco mailing list