How would I go about making an icon have less than 255 alpha value at runtime?
I know that rgb(R,G,B,A) CAN work for this with icon Blending, but as far as I know it requires a base color to use.
Is it possible to just take an icon and convert the entire thing to semi-transparency?
ID:157440
![]() Mar 9 2010, 3:25 pm
|
|
![]() Mar 9 2010, 3:26 pm
|
|
Subtract rgb(0,0,0,X) from it.
|
That doesn't appear to be working.
Here's the code I used: obj DisplayIcon is the normal, solid icon for the object. TransparentIcon is supposed to be the semi-transparent one created in obj/New() and referenced later for whenever the transparency effect is used, but TransparentIcon is still completely solid. |
Nevermind, I fixed it. Had to mess around with the code a bit:
New() |
Here's a great article on working with the icon processes (or rather a library that makes them easier to use):
http://www.byond.com/members/ DreamMakers?command=view_post&post=51608 |