Flint Particle System Forum - Copying colours from a DisplayObject to the emitter? Sat, 25 Dec 2010 19:05:35 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Copying colours from a DisplayObject to the emitter? http://flintparticles.org/forum/comments.php?DiscussionID=115&Focus=473#Comment_473 http://flintparticles.org/forum/comments.php?DiscussionID=115&Focus=473#Comment_473 Tue, 04 Nov 2008 15:57:25 +0000 TheDude 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 http://flintparticles.org/forum/comments.php?DiscussionID=115&Focus=474#Comment_474 Tue, 04 Nov 2008 17:04:07 +0000 TheDude
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 http://flintparticles.org/forum/comments.php?DiscussionID=115&Focus=478#Comment_478 Thu, 06 Nov 2008 08:37:17 +0000 Richard 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. ]]>