PRINT and ALPHAMODE

Previous topic - Next topic

MrTAToad

I notice that ALPHAMODE doesn't affect the text displayed by PRINT - is it supposed to or not ?

Steinbock

for me it works with ALPHAMODE between 0.0 and 1.0
Time will come. It's just a matter of time...

Moru

Both negative and positive values works for me but I'm only testing the default font so far.

Steinbock

I've tested my own font and it worked as well.
Time will come. It's just a matter of time...

Kitty Hello

Did you reset the alphamode at some point, maybe?

MrTAToad

#5
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]

Moru

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.

Schranz0r

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:
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard