mindtangle

Processing Sketch: Colorful Boids

Here’s a little sketch I made using Processing. It’s based on a standard flocking program that Benjamin and Mary F. were playing around with; I added a second flock, some randomness in their coloring, and the concept of “weight.” Heavier boids move slower, turn slower, beat their wings slower and are more pudgy in shape. I also gave them all trails, using a simple transparent rectangle placed between frames (a very computationally cheap way to do this.)

Below is a screenshot of the Processing sketch. Click to load the applet in your browser window and see it in motion. That link also has the source code for the sketch.

Picture 1

Note: Apologies for those who got spam in their RSS readers from this entry. After some Wordpress upgrades and removal of some suspicious files and users, I’m hoping that I have the spam kicked.

Related Posts:

4 Responses to “Processing Sketch: Colorful Boids”

  1. Lukas Says:

    Have you seen the description field in the RSS entry for this?

  2. ericnguyen Says:

    Dammit! Hacked again. I’ve cleaned up the theme using the excellent Theme Authenticity Checker plugin, but I can’t figure out how the code in getting injected in the first place…

  3. Ben Chun Says:

    You might want to check for this exploit, especially if you were lazy in the past about installing updates: http://jasoncosper.com/archives/wordpress-remvphp-and-you/

    Also, you should call smooth() before you draw the obstacles so they’re antialiased.

  4. ericnguyen Says:

    Luckily, it looks like I had not remv.php. I did find some suspicious users that I hadn’t created. Sneaky. They’ve been deleted and my theme patched up. We’ll see if the script kiddies make it back in in the future…

Leave a Reply

Comments can use Markdown syntax. The toolbar at the top will mark up your text using Markdown, automatically. If you'd like to use XHTML, these tags are available: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>