From 7666f152bb51d3e6dfd8517bfa7e758b839661de Mon Sep 17 00:00:00 2001 From: Chris Gerth Date: Mon, 5 Feb 2024 06:48:39 -0800 Subject: [PATCH] Fix chessboard gen for unique square sizes (#1217) --- photon-client/src/components/cameras/CameraCalibrationCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photon-client/src/components/cameras/CameraCalibrationCard.vue b/photon-client/src/components/cameras/CameraCalibrationCard.vue index 29b4d2b88..d9eca1a36 100644 --- a/photon-client/src/components/cameras/CameraCalibrationCard.vue +++ b/photon-client/src/components/cameras/CameraCalibrationCard.vue @@ -102,7 +102,7 @@ const downloadCalibBoard = () => { const yPos = chessboardStartY + squareY * squareSizeIn.value; // Only draw the odd squares to create the chessboard pattern - if ((xPos + yPos + 0.25) % 2 === 0) { + if (squareY % 2 != squareX % 2) { doc.rect(xPos, yPos, squareSizeIn.value, squareSizeIn.value, "F"); } }