Hi, I want to make a room in my game where it's pitch black and you have a light that surrounds the player (This is done by a canvas covering the screen and its drawing solid black, but then uses some.. well, the question of this topic ) The plan is, the circle will start bright in the center (about 32x32 with complete opacity), then get darker as it increases in distance. Any idea how to do this?
Example:
EDIT:
Solved and working amazingly