Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jul 13, 2019
1 parent c5a0e7a commit dd908e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions docs/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ function newProcessWasm(canvas, context, instance) {
const doubler = instance && instance._doubler;
let data = imageData.data;

const value = doubler(Math.floor(Math.random() * 40) + 120);
for(let i = 0; i < data.length; i += 4) {
data[i] = doubler(100) - data[i];
data[i + 1] = doubler(100) - data[i + 1];
data[i + 2] = doubler(100) - data[i + 2];
data[i] = value - data[i];
data[i + 1] = value - data[i + 1];
data[i + 2] = value - data[i + 2];
}

context.putImageData(imageData, 0, 0);
Expand Down
2 changes: 1 addition & 1 deletion docs/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd908e8

Please sign in to comment.