transparency with lcd object

alex.i's icon

does anybody know if it is possible to apply transparency to either a draw command or sprite within the LCD object?

Thanks

ruipenha's icon

funny... just came here to ask the same question!

Is there any way? even for the background alone?

jasch's icon

penmode 32
oprgb $1 $1 $1

/*j

BasS's icon

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

Samuel Freeman's icon

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
>

Samuel Freeman's icon
BasS's icon

That's great, for some reason I missed that topic.

Thanks!
Bas

BasS's icon

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

BasS's icon

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