transparency with lcd object
does anybody know if it is possible to apply transparency to either a draw command or sprite within the LCD object?
Thanks
funny... just came here to ask the same question!
Is there any way? even for the background alone?
penmode 32
oprgb $1 $1 $1
/*j
Hi,
Does this still work?
Can I also use this in combination with paintroundrect?
I would be nice if you could assign an alpha value to each individual sprite.
Hope you can help me.
Kind regards,
Bas
it seems to me that the drawing commands to lcd are the same as in Max4 -
colour being defined by three ints (RGB, 0-255) (or single int colour index
0-255), so no would be the unfortunate answer to your question, as far as I
can tell. Only the background can be set via attribute to transparent.
I'd be very happy to find this false however - alpha on sprites would be
great.
a quick implementation towards this would be to be able to set the alpha for
the whole lcd object rather than just a toggle between alpha = 0 and alpha
= 1
2008/10/8 Bas
>
> Hi,
>
> Does this still work?
> Can I also use this in combination with paintroundrect?
>
> I would be nice if you could assign an alpha value to each individual
> sprite.
>
> Hope you can help me.
>
> Kind regards,
> Bas
>
That's great, for some reason I missed that topic.
Thanks!
Bas
Hmm, does anybody know how to make this work with recordsprite as well? It seems it does not use the color code from frgb.
Regards,
Bas
This seems to work:
recordsprite, cliprect 0 0 0 0, frgb 180 180 180 75, paintroundrect 0 0 92 68 10 10, closesprite b, drawsprite b 0 0
But I don't know what the cliprect actually does. It's missing in the LCD reference, but it is in the clipping examples.
Regards,
Bas