Adjust Raster example to inverted gray value.

This commit is contained in:
Jürg Lehni 2013-04-08 20:22:02 -07:00
parent ca1a395dbd
commit 93437010aa

View file

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