GLBasic forum

Main forum => GLBasic - en => Topic started by: Charlie on 2009-Dec-27

Title: Help With Alpha
Post by: Charlie on 2009-Dec-27
Hi all. I am just learning GLBasic, and it appears to be a quite fun language to mess with.
But I'm trying to figure out how (or if I can) make this image appear correctly with alpha.

I've made a PNG image with a drop shadow effect. It Should look like the image below:
http://yfrog.com/jclogoxcp (http://yfrog.com/jclogoxcp)
(http://yfrog.com/jclogoxcp)

But  with all alpha values I've tried I get this image inside of GLBasic.
http://yfrog.com/57logo1kp (http://yfrog.com/57logo1kp)
(http://yfrog.com/57logo1kp)

The image has a transparent background with a drop shadow applied to the text.
Can I make the image appear how it's supposed to? Or is it not possible...

Thanks!
Title: Re: Help With Alpha
Post by: MrTAToad on 2009-Dec-28
Are you using an alpha value of around -0.5 ?
Title: Re: Help With Alpha
Post by: Charlie on 2009-Dec-28
Thanks. That value works pretty well, just a bit of color changing in the image.
My main issue was the placement of the alphamode command.
Had it at the top of my code, once I moved it directly above my drawsprite command it worked.
Knowing a value to use with it saved me a bit of time though :)