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

#1 add support for rendering all colors with the same opacity #17

Open spacemansteve opened 8 years ago

spacemansteve commented 8 years ago

added optional config parameter fixedOpacity if not set, the library works as before valid values are between 0 and 255. these values may be considered more awkward than values between 0 and 1. I decided to simply use what was used in the rgba colors.

jstorheatmapalpha