Calculator Community > Axe

DispGraph(r) and greyscale?

(1/2) > >>

Raylin:
Could I possibly have an example on how to use this correctly?

SirCmpwn:
* SirCmpwn goes to experiment with it

Quigibo:
If your background is in Pic1, then just draw it to the backbuffer:

[Pic1]->Pic1
det(12)
conj(Pic1,L3,768)

It will appear gray behind your foreground.  I haven't really added any grayscale drawing yet, so there is very limited usability right now.  But I'm sure you can do tricks with exchanging the buffers.

SirCmpwn:
Well, after experimentation, I was able to draw sprites in grayscale.  What I did was this (in my main loop):
Repeat getKey(15)
ClrDraw
[Draw all your grey sprites here]
Pt-On(0,0,Pic1
StorePic
ClrDraw
[Draw all your black sprites here]
Pt-On(8,0,Pic1
DispGraphr
End

*Edit*
Attached screenshot

Quigibo:
Exactly.  That's what I was thinking of.

But don't get too used to it, there will be much easier and faster ways to do grayscale in the future.

Navigation

[0] Message Index

[#] Next page

Go to full version