This is an algorithm that scrambles dark and light gray dots on the screen then sorts them
The scrambling process is slowed down so you can see it. I made this with no help.