GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2010-Jan-26

Title: PRINT and ALPHAMODE
Post by: MrTAToad on 2010-Jan-26
I notice that ALPHAMODE doesn't affect the text displayed by PRINT - is it supposed to or not ?
Title: Re: PRINT and ALPHAMODE
Post by: Steinbock on 2010-Jan-27
for me it works with ALPHAMODE between 0.0 and 1.0
Title: Re: PRINT and ALPHAMODE
Post by: Moru on 2010-Jan-27
Both negative and positive values works for me but I'm only testing the default font so far.
Title: Re: PRINT and ALPHAMODE
Post by: Steinbock on 2010-Jan-27
I've tested my own font and it worked as well.
Title: Re: PRINT and ALPHAMODE
Post by: Kitty Hello on 2010-Jan-27
Did you reset the alphamode at some point, maybe?
Title: Re: PRINT and ALPHAMODE
Post by: MrTAToad on 2010-Jan-27
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

Code (glbasic) Select
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]
Title: Re: PRINT and ALPHAMODE
Post by: 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, 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.
Title: Re: PRINT and ALPHAMODE
Post by: Schranz0r on 2010-Jan-27
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: