makePlot = function (surface, { width = 300, refs = [] } = {}) {
return Plot.plot({
width: width,
aspectRatio: 1,
grid: true,
x: { label: "chroma" },
y: { label: "luminance" },
marks: [
...surface.plotMarks100(),
Plot.dot(refs, {
x: "chroma",
y: "luminance",
r: 10,
stroke: "white",
strokeWidth: 2
}),
Plot.dot(refs, {
x: "chroma",
y: "luminance",
r: 12,
stroke: "black",
strokeWidth: 2
})
]
});
}