Published
Edited
Mar 8, 2019
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
shader`
#ifdef GL_ES
precision mediump float;
#endif

uniform vec2 u_resolution; // canvas size (width,height)
uniform vec2 u_mouse; // Mouse position in screen pixes
uniform float u_time; // Time in seconds since load

vec2 frag() {
return gl_FragCoord.xy/u_resolution;
}

void main() {
gl_FragColor = vec4(frag().x, frag().y, 0.5, 1.0);
}
`
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