poke1024 / tove2d

Animated vector graphics for LÖVE.
Other
171 stars 8 forks source link

Color tween between SVGs? #9

Closed pdesaulniers closed 5 years ago

pdesaulniers commented 5 years ago

In the blob demo, if I change the color of gradient-circle_00002.svg (without changing gradient-circle_00001.svg), the color change is not visible in the demo. The animations only affect the shape of the object, not the color.

Is it currently possible to interpolate colors between SVG files in TOVE, without doing it "manually" in code? If not, would that be very complex to implement?

poke1024 commented 5 years ago

Yes, as long as you stay in the same color type (e.g. "solid", "gradient with n colors") this is supposed to work. Will look into this.

pdesaulniers commented 5 years ago

Very cool! Thanks!