mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-03 00:33:48 -04:00
Small update to Phyllotaxis Raster.
This commit is contained in:
parent
9c9b498e4a
commit
a7fc55c998
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@
|
|||
group.position += delta;
|
||||
// Rotate the group of paths by 1 degree:
|
||||
group.rotate(1);
|
||||
// Rotate each path in the group by 2 degrees:
|
||||
for (var i = 0, l = group.children.length; i < l; i++) {
|
||||
group.children[i].rotate(2);
|
||||
}
|
||||
// Colorize the paths every other frame:
|
||||
if (event.count % 2 == 0) {
|
||||
colorizePaths();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue