diff --git a/src/core/draw.js b/src/core/draw.js index c33d694..c0258f0 100644 --- a/src/core/draw.js +++ b/src/core/draw.js @@ -109,7 +109,7 @@ export async function drawByOffset( // z out of bounds or weird stuff throw new Error(4); } - if (color >= canvas.colors.length) { + if (color >= canvas.colors.length || color < canvas.cli) { // color out of bounds throw new Error(5); }