well, as far as I can see the code does not deal with alpha levels in those functions. Everything is done for RGB values only (using the dev trunc code), adding of color stops, interpolating between stops etc. The effect I see is that what should be transparent is black. I'll see if I can experiments with the code a bit.
But if I add some alpha provision, then also the rendering should do that and that is a bit deeper in the code...