Skip to content
Browse files

Apply the grid fog to everything on the grid too.

  • Loading branch information...
1 parent bdcce6f commit 7b82a96ac22df4fc3ae537ccc96cde21387480ab @stephank committed Jun 14, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/grid.js
View
4 src/grid.js
@@ -87,6 +87,8 @@ Grid.prototype.screenTranslation = function() {
c.scale(scale, scale);
// Translate with the grid twist, so that the origin becomes the point of convergence.
c.translate(this.twist[0], this.twist[1]);
+ // Apply the alpha factor to everything on the grid.
+ c.globalAlpha = this.alphaFactor;
};
// Find the width factor at the given depth.
@@ -206,7 +208,7 @@ Grid.prototype.paint = function() {
this.drawLanes();
c.stroke();
- c.globalAlpha = 1.0;
+ // Assumption: the original +globalAlpha+ was already +alphaFactor+
};

0 comments on commit 7b82a96

Please sign in to comment.
Something went wrong with that request. Please try again.