var/scaling = 50/oldstate
var/matrix/M = matrix(barbar.transform)
animate(barbar, transform = M.Scale(scaling,1), time=delayfraction, color = "#f93")
Problem description:
I want the barbar image to elongate towards the right and change color, what happens instead is it grows longer towards the left and also moves(???)
Example: http://ss13.pomf.se/uploads/2015-06-13_12-52-10.mp4
build is 1286
animate(b, transform = M.Scale(scaling,1), M.Translate(scaling,0), time=delayfraction, color = "#f93")
I may be off (probably), you'll need to toy with translate.
I'm more concerned with the black fading corners they might be annoying at certain sizes.