solve2 = input => {
const svg = d3.select(DOM.svg(25,6))
.style("width", "100%")
.style("height", "auto")
svg.append("g").selectAll("g")
.data(intoPixels(input))
.enter().append("g").selectAll("rect")
.data(d => d).enter().append("rect")
.attr("x", d => d.x)
.attr("y", d => d.y)
.attr("width", 1)
.attr("height", 1)
.style("fill", d => [d3.hcl(0,0,0), d3.hcl(0,0,100), d3.hcl(50,0,50)][d.value])
.style("shape-rendering", "crispEdges")
return svg.node()
}