I notice that ALPHAMODE doesn't affect the text displayed by PRINT - is it supposed to or not ?
for me it works with ALPHAMODE between 0.0 and 1.0
Both negative and positive values works for me but I'm only testing the default font so far.
I've tested my own font and it worked as well.
Did you reset the alphamode at some point, maybe?
No - didn't do that.
Its just that are is no difference between -1, 0 and +1
In addition, any value over > 0 is the same as any value < 0
SETSCREEN 640,480,0
LOADFONT "Media/Smalfont.png",0
SETFONT 0
ALPHAMODE 0.0
PRINT "This is ALPHAMODE 0.0",0,0
ALPHAMODE -1.0
PRINT "This is ALPHAMODE -1.0",0,100
ALPHAMODE 1.0
PRINT "This is ALPHAMODE 1.0",0,200
ALPHAMODE 0.2
DRAWRECT 50,300,64,64,RGB(255,0,0)
ALPHAMODE 0.0
DRAWRECT 50+64,300,64,64,RGB(255,0,0)
ALPHAMODE -0.2
DRAWRECT 50+(64*2),300,64,64,RGB(255,0,0)
SHOWSCREEN
KEYWAIT
If its > -1 and < 1 then it is affected though...
I'm sure that -1.0 used to be duller than 0.0 and 1.0 used to be brighter.
[attachment deleted by admin]
What I understood when I tested ALPHAMODE first time I wanted to use it, close to zero is no color, 1 and -1 is all of the color, the steps inbetween is differently added to the background, one direction is additive, the other interpolated. I haven't tested it much with text though.
Quote from: Moru on 2010-Jan-27
What I understood when I tested ALPHAMODE first time I wanted to use it, close to zero is no color...
BINGO! :good: