Madness string 111696

Random mermaid
What in God's name is going on with this curve? Is it even math?

Personally I would like to see this code carefully gutted.