Nodes: Ink clouds
glint · Examples · Tutorials · Gallery
Visual node mode: warped fractal clouds between two colours, the hue drifting slowly round the wheel.

An example in glint, a free live shader editor in the browser: the GLSL code floats over the running picture and recompiles as you type.
The code
One pass, in GLSL.
fragment shader (generated from a node graph)
#version 300 es
precision highp float;
// Generated from nodes: edit the graph, or use "Convert to code" to take it from here by hand.
uniform vec2 resolution;
uniform float time;
in vec2 v_texcoord;
out vec4 fragColor;
float n_hash(vec2 p) { p = fract(p * vec2(123.34, 456.21)); p += dot(p, p + 45.32); return fract(p.x * p.y); }
vec2 n_hash2(vec2 p) { return fract(sin(vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)))) * 43758.5453); }
float n_noise(vec2 p) {
vec2 i = floor(p), f = fract(p), u = f * f * (3.0 - 2.0 * f);
return mix(mix(n_hash(i), n_hash(i + vec2(1, 0)), u.x), mix(n_hash(i + vec2(0, 1)), n_hash(i + vec2(1, 1)), u.x), u.y);
}
float n_fbm(vec2 p, float octaves) {
float v = 0.0, a = 0.5;
for (int k = 0; k < 8; k++) { if (float(k) >= octaves) break; v += a * n_noise(p); p = mat2(1.6, 1.2, -1.2, 1.6) * p; a *= 0.5; }
return v;
}
vec3 n_hueShift(vec3 c, float h) { const vec3 k = vec3(0.57735); float a = h * 6.2831853; return c * cos(a) + cross(k, c) * sin(a) + k * dot(k, c) * (1.0 - cos(a)); }
void main() {
// UV
vec2 nn5dnd8mvr7_uv = (v_texcoord * 2.0 - 1.0) * vec2(resolution.x / resolution.y, 1.0);
vec2 nn5dnd8mvr7_st = v_texcoord;
// Time
float nn5dnd8nmde_t = time * 0.2;
// Warp
vec2 nn5dnd8ohx7_uv = nn5dnd8mvr7_uv + 0.45 * (vec2(n_noise(nn5dnd8mvr7_uv * 1.8 + nn5dnd8nmde_t), n_noise(nn5dnd8mvr7_uv * 1.8 + vec2(5.2, 1.3) - nn5dnd8nmde_t)) - 0.5) * 2.0;
// Clouds (fbm)
float nn5dnd8pmfn_out = n_fbm(nn5dnd8ohx7_uv * 2.2 + vec2(nn5dnd8nmde_t, nn5dnd8nmde_t * 0.7), 6.0);
// Smoothstep
float nn5dnd8qkwr_out = smoothstep(0.3, 0.75, nn5dnd8pmfn_out);
// Gradient
vec3 nn5dnd8r3bt_rgb = mix(vec3(0.01, 0.02, 0.08), vec3(0.3, 0.85, 1.0), clamp(nn5dnd8qkwr_out, 0.0, 1.0));
// Multiply
float nn5dnd8se5x_out = (nn5dnd8nmde_t * 0.15);
// Hue shift
vec3 nn5dnd8tema_rgb = n_hueShift(nn5dnd8r3bt_rgb, nn5dnd8se5x_out);
fragColor = vec4(nn5dnd8tema_rgb, 1.0);
}More Nodes & glitch examples
Nodes: Paint trails · Nodes: Beat tiles · Nodes: Twirl · Nodes: Polar rings · Nodes: Kaleido checker · Nodes: Neon grid · Nodes: Expression · Nodes: Sunset stripes