Published
Edited
Dec 23, 2020
2 forks
Importers
28 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function small_to_big(xyz) {
const [x,y,z] = xyz;
const xh = my.div(y+shift*x, area),
yh = my.div(z+shift*y, area),
zh = my.div(x+shift*z, area);
const i = my.div(1+xh-yh, 3),
j = my.div(1+yh-zh, 3),
k = my.div(1+zh-xh, 3);
return [i,j,k,xh,yh,zh];
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function choose_color_number(xyz) {
const [x,y,z]= xyz;
const [i,j,k,xh,yh,zh] = small_to_big(xyz);
return my.mod(i-j,3);
//return x;
//return i;
//return yh;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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