Skip to content

Commit

Permalink
Add bw to right side to dim lights when white
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Jul 19, 2016
1 parent d503afc commit 86f679d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
var ctx = canvas.getContext('2d');

function drawCanvas() {
var colours = ctx.createLinearGradient(0, 0, window.innerWidth, 0);
var colours = ctx.createLinearGradient(30, 0, window.innerWidth, 0);
for(var i=0; i <= 360; i+=10) {
colours.addColorStop(i/360, 'hsl(' + i + ', 100%, 50%)');
}

ctx.fillStyle = colours;
ctx.fillRect(0, 0, window.innerWidth, window.innerHeight);
ctx.fillRect(30, 0, window.innerWidth, window.innerHeight);

var luminance = ctx.createLinearGradient(0, 0, 0, ctx.canvas.height);
luminance.addColorStop(0, '#ffffff');
Expand Down

0 comments on commit 86f679d

Please sign in to comment.