mourner / simpleheat

A tiny JavaScript library for drawing heatmaps with Canvas
http://mourner.github.io/simpleheat/demo
BSD 2-Clause "Simplified" License
937 stars 186 forks source link

draw() interferes with other previously applied canvas colours #47

Open meropis opened 1 year ago

meropis commented 1 year ago

In my case, I added a 30% opacity coloured area for the heatmap to sit within. When calling draw with the appropriate gradient it adjusts the colours of the area (stoke and fill). I've been looking through the source trying to figure out where this could originate from but I am unable.

Any ideas?