No idea, hum?!
First of all, as far as i can see, the switch case is minor issue here.
I don't quite understand the
9 planned actions with a 5 second delay,
looking to your chart it seems that if:
candle is touched fast, blows out
candle is touched slowly , flicks
....
getting close to the candle fast, flame change color.
... and so on....
is this right? or am i making wrong assumptions?
now back to processing,
in my point of view you need to
* capture the speed of the mouse, and store it to a variable.
* capture the distance of the mouse, to the target. (probabily the candle. can't see the target coords in your code) and store it.
* draw function of the candle.
* function with the switch case
if touch fast (1) change candle variables to something (draw function does the rest)
if touch slow (3) change candle variables to something (draw function does the rest)
....
are you able to it?
maxtrix.net