Visual representation of quadratic residue patterns, to demo Python and JavaScript