Update app.js - changed 6 to 8 in comment

master
stweedo 2023-05-15 23:30:13 -05:00 committed by GitHub
parent 0b33ca76dd
commit 0c2244eb5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ function drawResistor(colorBands, tolerance) {
g.drawLine(bandX, bandY, bandX, bandY + bandHeight); // left outline g.drawLine(bandX, bandY, bandX, bandY + bandHeight); // left outline
g.drawLine(bandX + bandWidth, bandY, bandX + bandWidth, bandY + bandHeight); // right outline g.drawLine(bandX + bandWidth, bandY, bandX + bandWidth, bandY + bandHeight); // right outline
// if it's the fourth band, shift it over by an additional 6 pixels // if it's the fourth band, shift it over by an additional 8 pixels
if (i === 2) { if (i === 2) {
currentX = bandX + bandWidth + 5 + 8; // update the current X position for the next band, accounting for the spacing currentX = bandX + bandWidth + 5 + 8; // update the current X position for the next band, accounting for the spacing
} else { } else {