Not A.

asked • 10/30/17

Programming math issue

I want to program an explosion in java(not really relevant)
 
My particle class updates the integer time 60 * a second and needs to change color based on which stage the explosion is in(7 stages)
I can't figure out how to set/advance the stage based on :
What percentage of the maximum lifetime of the particle has passed comparing with the variable time
 
I guess what I'm looking for is an equation or something to accomplish this
Any advice would be greatly appreciated ,)

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.