mourner / simpleheat

A tiny JavaScript library for drawing heatmaps with Canvas

Home Page:http://mourner.github.io/simpleheat/demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

draw() interferes with other previously applied canvas colours

meropis opened this issue · comments

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?