Skip to content

Commit

Permalink
Fix chessboard gen for unique square sizes (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 authored Feb 5, 2024
1 parent 45a39f6 commit 7666f15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 7666f15

Please sign in to comment.