Sparkling flower is another variation of generation of multiple particles with mouse movement. When the mouse is moved, new flowers are generated and slowly with time the flowers slowly fade away. New particles are generated with every mouse clicks. The color of the flowers are generated according to the mouse movement. The RGB values are mapped with the X/Y co-ordinates of the processing sketch.
This code is developed using Daniel Shiffman’s particle class.
The source codes for both the sketch can be downloaded from Open Processing.