Closed shaunlebron closed 6 years ago
current plan to redo #38 with correct transformation
User-facing:
const camera = await paper.get('camera')
drawFromCamera(supporterCtx, camera, srcPoints, dstPoints)
drawFromCamera(supporterCtx, camera, otherPaper.points, myPaper.points)
Internal:
drawFromCamera
{topLeft,topRight,bottomLeft,bottomRight}
forwardProjectionMatrixForPoints(config.knobPoints)
Done in #54 (also see #38 and #44).
current plan to redo #38 with correct transformation
User-facing:
const camera = await paper.get('camera')
drawFromCamera(supporterCtx, camera, srcPoints, dstPoints)
drawFromCamera(supporterCtx, camera, otherPaper.points, myPaper.points)
Internal:
drawFromCamera
utility function in paper.js{topLeft,topRight,bottomLeft,bottomRight}
forwardProjectionMatrixForPoints(config.knobPoints)
to convert our canvas coords to camera coords.