I was curious if there was a way to make a specific color of an icon animate. I know we've gotten further with allowing color to be changeable using the color matrix. I could've sworn MapColors() allowed me at one point to change specific colors to something else but now I'm thinking it may of been SwapColor. Basically I'm curious if you can animate a black outline to any color for various powerups. Something kinda like the following where I swap a black outline to red? I know a proc isn't possible within animate but maybe a color matrix could help achieve a similar effect which I'm terrible at.
Code:
mob/proc/GlowRed()
while()
animate(src,color = SwapColor(rgb(0,0,0),rgb(255,0,0)),time = 10)
sleep(10)
animate(src,color = null,time = 10)
sleep(10)
It's not possible to have a color matrix that only affects a specific part of any given icon.