Im working on a project that will be like a game (like gta v) minimap, but to track the user's movement over a field. The field is a 2K image, and the user is represented by a black triangle. But the triangle is positionated on the bottom of the field, not the center. And to rotate the background (as the user turns) I'm using the code from this answer's post: Bryan Field's answer, it works perfect, but the anchor's rotation is on center, I wanna this to be on the triangle, but I can't figure it out the maths to do it (in a way to not break the background image bounds). The triangle position is (canvas.width/2, canvas.height-100) and the rotation's anchor is in (canvas.width/2, canvas.height/2). Here's a screenshoot:
