Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
clear ink from attr
#7
slenkar Wrote:
Code:
ink 0
DIM a as Ubyte = 5
PRINT at selecty,selectx;a bAND 1

this just prints black ones to the screen
And that's ok.
bAND is an OPERATOR. It calculates (a AND 1). The difference with normal AND is that, AND uses boolean logic (0 = False, any other value = True).
bAND is for BINARY (or BITWISE) operations (hence the 'b' Prefix). You have bAND, bOR, bXOR and bNOT.

For what you want, do as LCD suggested:
Code:
PRINT AT y, x; OVER 1; PAPER 8; INK value; " "
This should do the trick.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)