Thanks im just getting into java script and this code is helping me understand the canvas funktion.
If you want to understand canvas, maybe it's better to start with something not obfuscated. Something like: https://www.w3schools.com/html/html5_canvas.asp it's quite a good start and has simple examples.