Adjust SpiralRaster to work with inverted gray.

This commit is contained in:
Jürg Lehni 2013-04-09 20:40:57 -07:00
parent 9fe1ff951a
commit e546848bcc

View file

@ -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);