HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Ramp colour up and down, not just interpolate?

View previous topic View next topic Go down 
AuthorMessage
zhaus



Messages : 2
Date d'inscription : 2011-01-04

PostSubject: Ramp colour up and down, not just interpolate?   Tue Jan 04, 2011 2:58 pm

First off, thanks very for all the work on Spark. It's a great particle engine!

Unfortunately I'm trying to do something which I'm not sure is supported. I want to ramp alpha up and then back down again, so particles fade in and then out again.

I see in the Spark2 trunk their is the option of setting a custom colour interpolator, which would allow me to manually change the alpha, but there doesn't seem to be anything like this in Spark1.

Is there a way to do this in Spark1 that I've missed? If not, how stable is Spark2?

Thanks for your help.
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Ramp colour up and down, not just interpolate?   Tue Jan 04, 2011 3:21 pm

Hi,

Yes this feature is supported in Spark1. Check out the Interpolator class. With this class you can accurately tune the way a parameter evolves. You can take a look at the fire or explosion demos which use the interpolator.

Regarding Spark 2, it is not yet finished (The development is slow as I dont have that much spare time), so you re better using the first version.

Dont hesitate if your have further questions.
Back to top Go down
View user profile http://spark.developpez.com
zhaus



Messages : 2
Date d'inscription : 2011-01-04

PostSubject: Re: Ramp colour up and down, not just interpolate?   Sun Jan 09, 2011 6:32 pm

Ahh, that's exactly the info I was looking for. Thanks once again for the great particle engine Smile
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Ramp colour up and down, not just interpolate?   Today at 3:41 am

Back to top Go down
 
Ramp colour up and down, not just interpolate?
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» How to take the screen shot? when i set a kwargs, it is showing error... when i not set kwargs it is coming black color as background
» How to verify particular TEXT color in web page using selenium webdriver?
» Wonderful Terrible Tattoos (take 2)
» CARA MENGELUARKAN WARNA AROWANA DENGAN TEKNIK TANNING
» has anyone tried colour glasses to treat migraine?

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Questions (en)-
Jump to: