Hello comunity,
My program should load many sprites with different backgroundcolors.
Then it should display the sprites transparent.
The most certain method could be select the first color in the upper left of the sprite and setting this color as transparentcolor.
Now my question:
How to determine the first color in the upper left of a sprite without displaying at first?
first color in a sprite
- Hroudtwolf
- Addict

- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
- Hroudtwolf
- Addict

- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
My brains functions again. 
Here is the solution.
Here is the solution.
Code: Select all
Procedure ErsteFarbeTransparent(sprite.l)
If StartDrawing (SpriteOutput(sprite.l))
farbe.l=Point(0,0)
StopDrawing ()
EndIf
TransparentSpriteColor(sprite.l,Red(farbe.l),Green(farbe.l),Blue(farbe.l))
EndProcedure
- Hroudtwolf
- Addict

- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
