GLBasic forum

Main forum => GLBasic - en => Topic started by: Enigma on 2009-Feb-07

Title: Mask Image
Post by: Enigma on 2009-Feb-07
Is there a mask image colour command in GLB?
Title: Re: Mask Image
Post by: Moru on 2009-Feb-07
If you mean to set the color for transparency it is:
Code (glbasic) Select
SETTRANSPARENCY RGB(255,0,128)
If you set the background color to RGB(255,0,128) that will be transparent when you draw sprites.
Title: Re: Mask Image
Post by: MrTAToad on 2009-Feb-07
SETTRANSPARENCY should do it - give it the rgb value of the colour you want to use as a mask.

Alternatively, use PNG's with a mask.

Ah - Moru got there first  =D
Title: Re: Mask Image
Post by: Enigma on 2009-Feb-07
Thanks guy's, that did just the job :)