Update:
Figured it out! For some reason, I had "Use webGL for rendering" checked in settings. Unchecking this fixed it! I'm a very amateur programmer, so I have absolutely no idea why, but webGL was conflicting with the function ctx.beginPath.
I hope anyone else messing around with lightcast can look at this and learn from it!