Figured it out! I had to swap the variables and invert y though.