Flock example: Reuse prepared symbol definition.

This commit is contained in:
Jürg Lehni 2011-06-20 17:51:39 +01:00
parent 37f5a64dce
commit 02408fc47e

View file

@ -31,7 +31,7 @@
this.r = 30;
this.maxSpeed = maxSpeed + strength;
this.maxForce = maxForce + strength;
this.head = new PlacedSymbol(head);
this.head = new PlacedSymbol(headSymbol);
this.path = new Path();
this.shortPath = new Path();
this.shortPath.strokeWidth = 4;