ID:171441
 
I've seen demos about icon manipulation like the Shadow demo and the car demo which turns the icon degrees-wise. Well, since that can be done, I was wondering if it is possible to create an icon fade to transparent without having to make the fading icon states.
There is no alpha channel (transparency), so no.
In response to Garthor
You could, however, do Blend()s with dithered icon states to dither the icon. This isn't nearly as nice-looking as alpha (variable) transparency, but it's the next best thing.

You'd use the ICON_ADD blending mode, and the dither icon states would be made up of only black pixels (where you want the pixels to stay) and transparent pixels (where you want to eliminate pixels). Like this:

var/icon/I = icon('whatever.dmi')
I.Blend('dither.dmi', ICON_ADD)
This will gradually blend a mob's icon with the icon of the turf it is in. If the mob is immobile, it will appear that it is fading in or out.
mob/proc
fadein(steps as num)
if(!loc) return
for(var/N in 1 to steps)
var/I = original_icon * (N/steps)
var/T = loc.icon * (1-(N/steps))
icon = I + T
sleep(1)
icon = original_icon

fadeout(steps as num)
if(!loc) return
for(var/N in 1 to steps)
var/I = original_icon * (1-(N/steps))
var/T = loc.icon * (N/steps)
icon = I + T
sleep(1)
icon = loc.icon