mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Adjust SpiralRaster to work with inverted gray.
This commit is contained in:
parent
9fe1ff951a
commit
e546848bcc
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@
|
|||
});
|
||||
var rot = vector.rotate(90);
|
||||
var color = raster.getAverageColor(position + vector / 2);
|
||||
var value = color ? (color.gray) * 3.7 : 0;
|
||||
var value = color ? (1 - color.gray) * 3.7 : 0;
|
||||
rot.length = Math.max(value, 0.2);
|
||||
path.add(position + vector - rot);
|
||||
path.insert(0, position + vector + rot);
|
||||
|
|
Loading…
Reference in a new issue