A basic demo of how to use the global composite operation in canvas to create a lighting effect.
A live demo can be accessed at https://xskutsu.github.io/global-composite-lighting/
Use WASD or arrow keys to move the player.
Tweak settings with the right-hand panel. Some may need the Apply & Reset Entities button to be pressed.
This project is licensed under the MIT license. Check out LICENSE.md for more information.
If you use this system, please consider giving credit. Not only is it kind, I'd be happy to see what you make with it!