We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi there, I'm pretty new to Programming as I'm a first year of an interactive media course in York.
But I currently have a working particle system, using a linked list to produce fireworks with is all working! But i'd like to add an effect to the particles that makes them flash as they fall to the ground. I was wondering if anybody has an idea to fix this. Somehow making the particle alternate between a colour and black? Making a sparkle affect... Hoping it will be a simple fix.
Any suggestions would be much appreciated! Many thanks in advance :)
Answers
Got this online fireworks example:
http://studio.processingtogether.com/sp/pad/export/ro.9Q6oRai8-41WJ/latest
Thanks, but I've already had a look at that example and it doesn't quite achieve what I want.. Thanks though! any other suggestions....?
Yeah, if your particles are objects, draw them only some of the time. I added this effect to my Octree of cubes with only three additional lines:
Oh, the lines are those that use the variable "flashrate", and the } that ends the if statement that's the second use of it.
Of course, you might still want to draw your particle in black, in which case you'd change the drawing color based on some conditional statement involving your Particle's flashing rate.
Post your working code and your attempt at this change for more help.
Thank you so much for this code! very impressive! I'll try this tomorrow with my code and let you know how it goes. cheers