Truchet Patterns (Shader)

I made these images with just code in a fragment (pixel) shader without the use of textures or other external resources.