Flint Particle System Forum - Copying colours from a DisplayObject to the emitter? 2010-11-17T10:46:20+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Copying colours from a DisplayObject to the emitter? http://flintparticles.org/forum/comments.php?DiscussionID=115&Focus=473#Comment_473 2008-11-04T15:57:25+00:00 2010-11-17T10:46:20+00:00 TheDude http://flintparticles.org/forum/account.php?u=87 Greetings, I've a final question and then I'm done (for a while) I've discovered a nice way to do object explosions that move with the velocity of the attacking projectiles using DisplayObjectZone ... I've a final question and then I'm done (for a while)
I've discovered a nice way to do object explosions that move with the velocity of the attacking projectiles using DisplayObjectZone as my origin position and Explode with Velocity DiscZone. It's quite impressive and it's all thanks to Flint- BUT:

Is there any emitter actions out there that can possibly grab the pixel data (more specifically- colour) of a DisplayObject(a MovieClip) on the screen
and tint the nearest particles to that colour?
If not that's definitely a request for the next update.

By the way Richard just for reference I came across a nice examples page of different Zones and their effects here;
http://2px.cc/2blog/2008/03/flintzones.html
Rather handy I'm sure you'd agree.]]>
Copying colours from a DisplayObject to the emitter? http://flintparticles.org/forum/comments.php?DiscussionID=115&Focus=474#Comment_474 2008-11-04T17:04:07+00:00 2010-11-17T10:46:20+00:00 TheDude http://flintparticles.org/forum/account.php?u=87 var particles:Array = Particle2DUtils.createParticles2DFromDisplayObjects(renderer,ob, emitter.particleFactory); thought that would do the trick but I can't get the syntax right!
thought that would do the trick but I can't get the syntax right!]]>
Copying colours from a DisplayObject to the emitter? http://flintparticles.org/forum/comments.php?DiscussionID=115&Focus=478#Comment_478 2008-11-06T08:37:17+00:00 2010-11-17T10:46:20+00:00 Richard http://flintparticles.org/forum/account.php?u=1 createParticles2DFromDisplayObjects takes an array of display objects and converts them to particles which can then be added to an emitter using the emitter's addExistingParticles method. I'm not ... createParticles2DFromDisplayObjects takes an array of display objects and converts them to particles which can then be added to an emitter using the emitter's addExistingParticles method.

I'm not entirely sure what you are trying to do (if you have a visual example that would help) but I suspect it's something like the createPixelParticlesFromBitmapData method, but for a display object rather than a bitmap data object. If that's the case, you could draw your display object into a bitmap data object and pass that bitmap data object to this method to get an array of pixel particles that match the colour and position of the pixels of the display object.]]>