Published
Edited
Dec 12, 2018
1 fork
Importers
2 stars
Insert cell
Insert cell
ramp(t => {
const i = Math.round(t * (830 - 390) + 390) - 390;
const xyz = cmf.slice(i * 3, i * 3 + 3);
const rgb = xyz_rgb(xyz);
return `rgb(${rgb.map(c => Math.round(c * 255))})`;
})
Insert cell
function xyz_rgb(xyz) {
return lrgb_rgb(matrix_multiply_vector(matrix_xyzd50_lrgb, xyz));
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more