I\'m writing a simple 2D game engine using the HTML5 canvas. I\'ve come to adding a lighting engine. Each light source has a radius value and an intensity value (0-1, eg 1 w
Just an idea, but since you're getting the opposite effect you're going for from your gradient, have you tried reversing the gradient?