lut = name =>
d3
.text(
`https://raw.githubusercontent.com/1313e/CMasher/master/cmasher/colormaps/${name}/${name}_8bit.txt`
)
.then(d => d3.dsvFormat(" ").parseRows(d, d => d3.rgb(d[0], d[1], d[2])))
.then(l => t => l[Math.floor(t * (l.length - 1e-7))])