From 93437010aa8b8983f6904137f996ab6cdc5590c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 8 Apr 2013 20:22:02 -0700 Subject: [PATCH] Adjust Raster example to inverted gray value. --- examples/Rasters/RotationRaster.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Rasters/RotationRaster.html b/examples/Rasters/RotationRaster.html index 315b1e14..c986aff6 100644 --- a/examples/Rasters/RotationRaster.html +++ b/examples/Rasters/RotationRaster.html @@ -16,7 +16,7 @@ for (var x = 0; x < size.width; x++) { for (var y = 0; y < size.height; y++) { var color = raster.getPixel(x, y); - var gray = color.gray * 0.9; + var gray = (1 - color.gray) * 0.9; if (gray > 0.1) { var pos = new Point(x, y) * colSize + colSize / 2; var rectSize = gray * colSize.width;