Works slightly better on pc. Just drag the mouse around, teeny bit glitchy. The code is a bit botched since I did it without any reference.
Feel free to use in other projects with credit.