packages/nft-bitmap-kit/src/colors.ts
Showing 1 of 1 total issue
Function fillColor
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
Open
export function fillColor(image: Color[][], color: Color, position: Position) { const targetColor = image[position.y][position.x]; if (targetColor.hex === color.hex) return image; const stack: Position[] = [position]; while (stack.length) {
- Read upRead up