mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-21 02:21:34 -04:00
Clean up white spaces.
This commit is contained in:
parent
e573fe5dcd
commit
5655981f6d
34 changed files with 147 additions and 148 deletions
examples/Rasters
|
@ -52,7 +52,7 @@ function onMouseMove(event) {
|
|||
size = size.floor();
|
||||
secondPath.position += isLandscape
|
||||
? [size.width, 0]
|
||||
: [0, size.height];
|
||||
: [0, size.height];
|
||||
secondPath.fillColor = raster.getAverageColor(secondPath);
|
||||
secondPath.insertBelow(path);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// The amount of paths to produce:
|
||||
amount: 200
|
||||
};
|
||||
// Create a raster object, using the image
|
||||
// Create a raster object, using the image
|
||||
var raster = new Raster('sunflower');
|
||||
|
||||
// Transform the raster so it fills the bounding rectangle
|
||||
|
@ -29,7 +29,7 @@
|
|||
// Create the group of circle shaped paths and scale it up a bit:
|
||||
var group = createPhyllotaxis(values.amount);
|
||||
group.scale(3);
|
||||
|
||||
|
||||
function createPhyllotaxis(amount) {
|
||||
var group = new Group();
|
||||
// The Golden Angle (http://en.wikipedia.org/wiki/Golden_angle)
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
|
||||
if (path)
|
||||
path.remove();
|
||||
|
||||
|
||||
position = view.center;
|
||||
count = 0;
|
||||
path = new Path();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue