ID:272010
 

How do I change the alpha channel of the icon by codes?
You can use one of the following procedures (look in DM Ref):
icon.MapColors()
icon.SwapColors() + rgb() with alpha parameter defined

Example (not tested):
Developer/verb/Change_Alpha()
for(var/r = 0 to 255)
for(var/g = 0 to 255)
for(var/b = 0 to 255)
src.icon.SwapColors(rgb(r,g,b,255),rgb(r,g,b,150)0
The above _EXAMPLE_ loops through all possible rgb() color value and changes all opaque forms (255) to translucent (150 in this example)

There may be an easier way I think...
In response to GhostAnime

Thank you! I was trying to do, but I did not know was so easy ^^