Skip to content

Commit

Permalink
Fix bug in filter color. Should be 0-1 instead of 0-255.
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbany committed Dec 6, 2015
1 parent a8f4aea commit 35dd341
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/scripting/Host.js
Original file line number Diff line number Diff line change
Expand Up @@ -900,9 +900,9 @@ var CCLScripting = function(workerUrl){
cG = Math.floor((filter.params.color % 65536)/256),
cB = filter.params.color % 256;
var cMatrix = [
0,0,0,cR,0,
0,0,0,cG,0,
0,0,0,cB,0,
0,0,0,cR/256,0,
0,0,0,cG/256,0,
0,0,0,cB/256,0,
0,0,0,1,0,
];
dFilter.appendChild(__("feColorMatrix",{
Expand Down
6 changes: 3 additions & 3 deletions src/scripting/Unpacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,9 @@
cG = Math.floor((filter.params.color % 65536)/256),
cB = filter.params.color % 256;
var cMatrix = [
0,0,0,cR,0,
0,0,0,cG,0,
0,0,0,cB,0,
0,0,0,cR/256,0,
0,0,0,cG/256,0,
0,0,0,cB/256,0,
0,0,0,1,0,
];
dFilter.appendChild(__("feColorMatrix",{
Expand Down

0 comments on commit 35dd341

Please sign in to comment.