function ramp(rgb, height = 66) {
const context = DOM.context2d(width, height, 1);
context.canvas.style.imageRendering = "pixelated";
for (let x = 0; x < width; ++x) {
context.fillStyle = rgb(x / (width - 1));
context.fillRect(x, 0, 1, height);
}
return context.canvas;
}