Skip to content

Commit

Permalink
handle 4 bytes of color data
Browse files Browse the repository at this point in the history
  • Loading branch information
che-effe committed Feb 1, 2019
1 parent 0ea7fea commit e00bbcd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.vscode
2 changes: 1 addition & 1 deletion lib/pixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ColorString.colorValue = function colorValue (colors, g_table) {
colors[2] = g_table[colors[2]];
colors[3] = g_table[colors[3]];

return ((colors[0] << 24) + (colors[0] << 16) + (colors[1] << 8) + (colors[2]));
return ((colors[0] << 24) + (colors[1] << 16) + (colors[2] << 8) + (colors[3]));
}

// CONSTANTS
Expand Down
2 changes: 1 addition & 1 deletion todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@

* * *

Last generated: Thu Jan 24 2019 15:00:46 by [grunt-todo](https://github.com/leny/grunt-todo).
Last generated: Thu Jan 31 2019 16:19:40 by [grunt-todo](https://github.com/leny/grunt-todo).

0 comments on commit e00bbcd

Please sign in to comment.