Skip to content

Commit e00bbcd

Browse files
committed
handle 4 bytes of color data
1 parent 0ea7fea commit e00bbcd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
.vscode

lib/pixel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ColorString.colorValue = function colorValue (colors, g_table) {
2828
colors[2] = g_table[colors[2]];
2929
colors[3] = g_table[colors[3]];
3030

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

3434
// CONSTANTS

todo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636

3737
* * *
3838

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

0 commit comments

Comments
 (0)