Open balthazar opened 8 years ago
After further investigations, it often happens when providing an invalid value of RGB color values. I can create another PR / update this one to prevent this by throwing an error or resetting the value to a valid one, as you prefer @tj.
Sometimes, the
palette
from theCMap
of quantize can returnfalse
, leading to an uncaught error. This helps catching it smoothly by returning an empty array.