Nodes: Kaleido checker
glint · Examples · Tutorials · Gallery
Visual node mode: a checkerboard turned, folded into eight slices and coloured by distance from the middle.

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;
vec2 n_rotate(vec2 p, float a) { float c = cos(a), s = sin(a); return mat2(c, s, -s, c) * p; }
vec2 n_kaleido(vec2 p, float n) {
float a = atan(p.y, p.x), r = length(p), s = 6.2831853 / max(n, 1.0);
a = mod(a, s); a = abs(a - s * 0.5);
return vec2(cos(a), sin(a)) * r;
}
vec3 n_palette(float t, vec3 a, vec3 b, vec3 c, vec3 d) { return a + b * cos(6.2831853 * (c * t + d)); }
void main() {
// UV
vec2 nn5dne8vt3c_uv = (v_texcoord * 2.0 - 1.0) * vec2(resolution.x / resolution.y, 1.0);
vec2 nn5dne8vt3c_st = v_texcoord;
// Polar
float nn5dne91g3r_angle = (atan(nn5dne8vt3c_uv.y, nn5dne8vt3c_uv.x) / 6.2831853 + 0.5);
float nn5dne91g3r_radius = length(nn5dne8vt3c_uv);
vec2 nn5dne91g3r_uv = vec2(atan(nn5dne8vt3c_uv.y, nn5dne8vt3c_uv.x) / 6.2831853 + 0.5, length(nn5dne8vt3c_uv));
// Time
float nn5dne8w7lp_t = time * 0.25;
// Add
float nn5dne92wzs_out = (nn5dne91g3r_radius + nn5dne8w7lp_t);
// Palette
vec3 nn5dne93kg9_rgb = n_palette(nn5dne92wzs_out, vec3(0.5), vec3(0.5), vec3(1.0, 1.0, 0.5), vec3(0.8, 0.9, 0.3));
// Rotate
vec2 nn5dne8xbml_uv = n_rotate(nn5dne8vt3c_uv, nn5dne8w7lp_t);
// Kaleidoscope
vec2 nn5dne8yshw_uv = n_kaleido(nn5dne8xbml_uv, 8.0);
// Checker
float nn5dne8zg9q_out = mod(floor(nn5dne8yshw_uv.x * 5.0 * 0.5) + floor(nn5dne8yshw_uv.y * 5.0 * 0.5), 2.0);
// Remap
float nn5dne90njg_out = (0.15 + (nn5dne8zg9q_out - 0.0) / (1.0 - 0.0) * (1.0 - 0.15));
// Multiply
vec3 nn5dne949he_out = (nn5dne93kg9_rgb * vec3(nn5dne90njg_out));
fragColor = vec4(nn5dne949he_out, 1.0);
}More Nodes & glitch examples
Nodes: Beat tiles · Nodes: Twirl · Nodes: Polar rings · Nodes: Ink clouds · Nodes: Neon grid · Nodes: Expression · Nodes: Sunset stripes · Nodes: Spotlight