Skip to content
This repository was archived by the owner on Jun 19, 2018. It is now read-only.

Commit ecddac6

Browse files
author
Tim Mickel
committed
Merge pull request #94 from chad3814/master
fix pen stroke coloring
2 parents 56be485 + 4f91e55 commit ecddac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/Stage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ Stage.prototype.stroke = function(from, to, width, color) {
6666
// Use .5 offsets for canvas rigid pixel drawing
6767
this.lineCache.moveTo(from[0] + 240.5, 180.5 - from[1]);
6868
this.lineCache.lineTo(to[0] + 240.5, 180.5 - to[1]);
69-
this.lineCache.strokeStyle = 'rgb(' + (color >> 16) + ',' + (color >> 8 & 255) + ',' + (color & 255) + ')';
69+
this.lineCache.strokeStyle = 'rgb(' + (color >>> 16 & 255) + ',' + (color >>> 8 & 255) + ',' + (color >>> 0 & 255) + ')';
7070
this.lineCache.stroke();
7171
};

0 commit comments

Comments
 (0)