From e546848bcc80d7382ba469bf54f4425c7fdea1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 9 Apr 2013 20:40:57 -0700 Subject: [PATCH] Adjust SpiralRaster to work with inverted gray. --- examples/Paperjs.org/SpiralRaster.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Paperjs.org/SpiralRaster.html b/examples/Paperjs.org/SpiralRaster.html index 97d00b20..f5d27406 100644 --- a/examples/Paperjs.org/SpiralRaster.html +++ b/examples/Paperjs.org/SpiralRaster.html @@ -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);