Jump to content

Code Question ... Transparent Fade


Recommended Posts

I'm having trouble with that code. For some reason, if I set the opacity of the primary color (black by default) to 255 and the opacity of the secondary color(white by default) to 0 and run the code in codelab, the image in only even partially opaque for the top 5 or so pixels, everything beneath that is totally transparent. This was on a 128x128 image btw. If I make the secondary color semi-transparent white (34 or so opacity, the whole image become semi-transparent with no apparent gradient. What am I doing wrong?

Lawless%20government%20sig.png
Link to comment
Share on other sites

  • 1 month later...

Did you change your primary and secondary colors? The script fades from the alpha value set for your primary color to the alpha value set for your secondary color. In order to fade out the image, you'll have to have one of your colors set to 0 alpha.

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

  • 1 year later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...