[Flashcoders] Algorithm ideas

2012-03-05 Thread Paul Andrews
Lets imagine I have 100 sprites scattered around the stage - no regular 
pattern, but generally spread evenly.


My task is to remove 40 of them. That's easy, but I want to remove them 
as evenly as possible, so the density thins but is reasonably consistent 
across the stage.


Any ideas? I don't know if there is a standard algorithm for this.

Paul


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Algorithm ideas

2012-03-05 Thread Paul Andrews

On 05/03/2012 23:12, Paul Andrews wrote:
Lets imagine I have 100 sprites scattered around the stage - no 
regular pattern, but generally spread evenly.


My task is to remove 40 of them. That's easy, but I want to remove 
them as evenly as possible, so the density thins but is reasonably 
consistent across the stage.


Any ideas? I don't know if there is a standard algorithm for this.


No worries - I worked it out. Should have had some thinking time before 
posting.


Paul


Paul


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders