Published
Edited
Jan 18, 2022
4 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pixelColorCode = [
`
uniform vec3 color;

uniform vec2 resolution;
uniform vec3 eye, at;
uniform vec3 up;
uniform float fov;
uniform vec3 bboxMin, bboxMax;
`,
`
vec3 pixelColor(vec2 pixel){
return color;
}
`
]
Insert cell
Insert cell
Insert cell
uniforms = ({
color: hex2rgb(backgroundColor),
resolution: [gl.canvas.width, gl.canvas.height],
eye: [0, 0, 5],
up: [0, 1, 0],
fov: Math.PI / 3,
at: [0, 0, 0],
bboxMin: [-0.5, -0.5, -0.5],
bboxMax: [0.5, 0.5, 0.5]
})
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