Published
Edited
Nov 28, 2020
1 fork
Importers
7 stars
Also listed in…
GLSL
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fragment(`
precision mediump float;

uniform vec2 u_resolution;
uniform float u_time;

void main() {
vec2 st = gl_FragCoord.xy / u_resolution;
gl_FragColor = vec4(st, sin(u_time) / 2. + 0.5, 1.0);
}
`)
Insert cell
Insert cell
fragment(`
precision mediump float;

uniform float u_time;
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform sampler2D u_texture;

void main() {
vec2 st = gl_FragCoord.xy / u_resolution;
gl_FragColor = texture2D(u_texture, vec2(st.x + pow(1.0 - st.y, 4.) * sin((u_time + 2.) * st.y * 5.), st.y));
}
`, { w: 400, h: 400, play: false, u_texture: 'https://i.imgur.com/I6oaru5.jpg' })
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more