[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SWARM Boids
From: |
Jan Kreft |
Subject: |
Re: SWARM Boids |
Date: |
Tue, 1 Jun 1999 15:47:01 +0100 (BST) |
Hi,
if you need only a few orientations, say 8, and a few sizes, say 3, then
using premade pixmaps might do?
HTH, Jan.
On Tue, 1 Jun 1999, Eric Werk wrote:
> Hi all!
>
> I am trying to make a SWARM version of Craig Reynolds a-life "Boids".
> (see http://hmt.com/cwr/boids.html for his implementation in Java)
>
> My code so far can be found at http://www.daimi.au.dk/~werk/swarm/boid/
>
> For now, the display is 2D, and the Boids (and other objects) are drawn
> on a Canvas with an OvalNodeItem (see [aSimObject display])
>
> I would like to make triangular representation of the boids, based on
> their size and current heading, but cannot figure out how to draw
> (and subsequently erase) a composite graphical object.
>
> Do I have to delve into tk/tcl programming to do this, or is there
> somehow
> I can collect a number of Lines (from the gui lib) and make that into a
> composite item that responds to [aComposite draw] and [aComposite
> erase]?
>
> /Eric Werk
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.