sparks.js icon indicating copy to clipboard operation
sparks.js copied to clipboard

Colour classes

Open renegademaster88 opened this issue 12 years ago • 7 comments

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!

renegademaster88 avatar Feb 28 '12 21:02 renegademaster88