canvas = shader({width:400, height: 400, iTime: true,uniforms: {f: "float", a:"float"}})`
float Wave(float p, float amplitude, float frequence)
{
float y = amplitude*(abs(mod(p*frequence,2.0)-1.));
return y;
}
void mainImage(out vec4 fragColor,in vec2 fragCoord) {
vec2 st = fragCoord.xy/iResolution.xy;
st.x *= iResolution.x/iResolution.y;
st = st * 2.-1.;
float d = length(st);
d -= iTime;
float wave = Wave(d,a,f);
fragColor = vec4(vec3(wave),1.0);
}
`