Fix chessboard gen for unique square sizes (#1217)

This commit is contained in:
Chris Gerth
2024-02-05 06:48:39 -08:00
committed by GitHub
parent 45a39f6609
commit 7666f152bb

View File

@@ -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");
}
}