Simplify code.

This commit is contained in:
Jürg Lehni 2011-05-06 00:19:24 +01:00
parent a3da96e8be
commit 8f7deef61c

View file

@ -24,8 +24,7 @@
var l = offset.length;
for (var j = 0; j < values.points * 2; j++) {
offset.angle += 360 / values.points;
var vector = offset.clone();
vector.length = l * (j % 2 ? 0.1 : -0.1);
var vector = offset.normalize(l * (j % 2 ? 0.1 : -0.1));
path.add(offset + vector);
}
path.smooth();