I'm not at a computer atm but i think transparent might set the other color channels to zero, and so it ends up interpolating between transparent black and opaque white which gives you the gray?
Zach Klippenstein (he/him) [MOD]
09/30/2021, 5:49 AM
You could try doing
Color.White.copy(alpha=0f)
instead of
Transparent
๐ 1
a
adjpd
09/30/2021, 11:45 AM
That's fantastic, Zach. Thank you. Should I report that as a bug? The gray gradient seems rather strange seeing as
Color.Transparent
was set.
z
Zach Klippenstein (he/him) [MOD]
09/30/2021, 4:33 PM
I don't think it's worth filing a bug, I think you just have to be careful when lerping colors that if you only want to lerp the alpha channel, you make sure that's the only channel that's different.