var/static/list/base_color_matrix = list(
1,0,0,0,
0,1,0,0,
0,0,1,0,
0,0,0,1,
0,0,0,0
)
var/static/list/inverted_color_matrix = list(
0,1,1,0,
1,0,1,0,
1,1,0,0,
0,0,0,1,
0,0,0,0
)
//Base color.
color = base_color_matrix
animate(
src,
color = base_color_matrix,
loop = -1,
time = 2 SECONDS
)
animate(
color = inverted_color_matrix,
time = 2 SECONDS,
)
So how do you properly do a hue shift animation? Any help is appreciated.
https://github.com/tgstation/tgstation/blob/ 48beb20406128321efdfa87d531d09ffdce8fcaf/code/__HELPERS/ matrices.dm#L114
Credit to the Space Station 13 /tg/station repo.