zz85/sparks.js — Issue #14: Colour classes
Author: renegademaster88
Created: 2012-02-28 21:49:17+00:00
State: open

Hi there, i have just finished writing a quick guide to sparks (please have a read there afew questions),which i have to say is an excellent highly flexible particle system.

The only bit that i dont understand, is you have not got any colour manipulation objects amongst your Initializers and Actions, and when i look at your examples, they all work by changing the particle colour in code outside of sparks callbacks etc. This seems a bit counter intuitive to me since you have such a comprehensive array of objects already. Couldn't we have define some colour behaviour classes instead?

SPARKS.SpriteInitializer () which takes a new THREE.texture () as a parameter

SPARKS.ColorBlender() Action
which contains an array of colours and number between 0 an 1 to denote where the colour is.

just an idea!