Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

FlowEnt Tweening Library Gradient

I’ve recently started using the FlowEnt Tweening library and I was wondering how i could go about using a gradient to control the colour of lights?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

in order to use the Gradient on a Light all you have to do is create a new tween, apply all the options and then use the implemented extension method that creates the motion

Gradient gradient;
Light light;
new Tween().SetTime(2f).For(light).ColorTo(gradient).Start();

Don’t forget to call start after you apply all options and motions!

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading