Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correctly divide transparency by 255 (fixes #30)

  • Loading branch information...
commit e68546bcde6e94cb768d47b6f4889f4a246aabf2 1 parent 611cbb9
@cdsmith authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  web/draw.js
View
2  web/draw.js
@@ -416,7 +416,7 @@ function display(ctx, p, a, b, c, d, e, f)
var cr = p.popByte();
var cg = p.popByte();
var cb = p.popByte();
- var ca = p.popByte();
+ var ca = p.popByte() / 255.0;
var str = "rgba(" + cr + "," + cg + "," + cb + "," + ca + ")";
ctx.save();
ctx.strokeStyle = str;
Please sign in to comment.
Something went wrong with that request. Please try again.