Front buffer: Back buffer: Result: | off off white | off on light gray | on off dark gray | on on black |
[Hex for Front buffer]→Pic1A ; you can use other names for pointers if you want
[Hex for Back buffer]→Pic1B
...
ClrDrawrr ; clears both buffers at the same time
While 1
...
Pt-Off(X,Y,Pic1A) ; X and Y are the coordinates
Pt-Off(X,Y,Pic1B)r
...
DispGraphClrDrawrr ; for 4 level you need two radian r's
...
EndIf getkey(15)
It's above, just change the hex codes.Okay, and I'm guisng to remove the ellipsis? Also why is point off?
I meant the "..." also why is it pt-off instead of pt-on?
Ooh, thanks, it works now, Time to go see If i can remove flicker now.I meant the "..." also why is it pt-off instead of pt-on?
Yeah, remove the dots (you can add other code in there, like movement)
Make sure to initialize X and Y or replace them with constants.
Pt-Off is slightly faster than Pt-On (when X is a multiple of 8 ), so that's why I used that for the example. But doesn't really matter.
Hex:
[FFFFC3C3C3C3FFFF] for front buffer
[FF81BDA5A5BD81FF] for back buffer
That should be a neat little box with all colors!
Ooh, thanks, it works now, Time to go see If i can remove flicker now.What flicker? There shouldn't be any flickering except when your loop is two slow. Can you post your code?
Its the above provided one, its just like diagonal scanlines and that seem to move horizontally.Ooh, thanks, it works now, Time to go see If i can remove flicker now.What flicker? There shouldn't be any flickering except when your loop is two slow. Can you post your code?
Unfortunately, you have to mess around with pauses (or interrupts :P) in order to get the greyscale as flickerless as possible.Hmm, thanks, I might do a calibration screen though.
A more detailed description can be found here. (http://www.omnimaga.org/index.php?action=articles;sa=view;article=82)