Plot.plot({
marks: [
Plot.cell(colors, {
x: "a",
y: "b",
fill: (d) => d,
...(sRGB.length ? { fillOpacity: (d) => d.displayable() } : {}),
inset: -1
}),
Plot.crosshair(colors, {
x: "a",
y: "b",
}),
],
color: { type: "identity" },
y: { reverse: true },
opacity: { domain: [true, false], range: [1, 0.3] },
width,
height: width,
marginRight: 0,
marginTop: 0
})