Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
How do you use print to remove all ink from an attribute (8*8 square)
the opposite is 'print /::' to draw a block but i want to clear all ink away and leave the paper
Posts: 614
Threads: 49
Joined: Feb 2009
Reputation:
2
Just " " (space) or "/ " (with two spaces). But if you want only to clear Attr, use and PAPER 8, BRIGHT 8, maybe FLASH 8 and set INK to any colour you like. If you don't want to clear pixels use OVER 1.
Posts: 614
Threads: 49
Joined: Feb 2009
Reputation:
2
SETATTR only for paper needs BAND function to work. I myself use pokes, especialy for the whole screen (768 bytes), but SATATTR is fast too. You will need ATTR to read the Attribute at given coordinate, then binary AND it with a mask (BIN 11000111) to get a value without paper. Then you can use a new paper if it is different than zero by binary OR-ing (BOR) it with Paper shifted to left 3 times ( newpaper<<3 ).