Comment on Monorail – Turn CSS animations into interactive SVG graphsparentComments−didgeoridoo1yIs that what’s happening with the color? I assumed it was doing (R+G+B)•Opacity, so the max would be 255•3=765 and the min would be 0.−efskap1yYeah I dug up the relevant function because I was curious how one would solve this. return (r * 1000 + g * 100 + b * 10 + a * 255) / 10000; https://github.com/Stanko/monorail/blob/2da287a4e822705a99d7...
Comments
Is that what’s happening with the color? I assumed it was doing (R+G+B)•Opacity, so the max would be 255•3=765 and the min would be 0.
Yeah I dug up the relevant function because I was curious how one would solve this.
https://github.com/Stanko/monorail/blob/2da287a4e822705a99d7...