The x/y limits are fine, but the coloring breaks on any zoom event, perhaps a rounding issue? http://codepen.io/cpsievert/pen/qNEXKV