ID:1210695
 
Hey everyone. I took a look around with search and didn't immediately spot anything for this, so I tried to come up with a method on my own.

Using the MapColors() proc, I came up with a little proc of my own to easily have transparency with ease in your icons.

proc
transparent(atom/a, l=0.5)
var icon/i = new(a.icon)
i.MapColors(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,l, 0,0,0,0)
a.icon = i


There ya go, just set l to the amount you would like to use. 1 for 100% opacity, 0 for 0% opacity.
Lummox JR's IconProcs library includes icon.ChangeOpacity() that uses MapColors as well.
In response to Kaiochao
Is that so? Good to note, I'll be checking that out.