mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Adjust Raster example to inverted gray value.
This commit is contained in:
parent
ca1a395dbd
commit
93437010aa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue