Skip to content

Commit

Permalink
Update cli/lib/png2src.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aduros authored Jul 22, 2024
1 parent f77b4d2 commit 79bf9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/lib/png2src.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ The first occurrence of another color is at (${x}, ${y}) and has the value of (R
// Write a color (palette index) to the output buffer
function writeColor(color, x, y) {
if(bpp != 1 && bpp != 2){
throw new Error("unexpexted bpp");
throw new Error("Unexpected bpp");
}

const color_idx = (y * png.width + x);
Expand Down

0 comments on commit 79bf9ac

Please sign in to comment.