awesome-algorand/nft-bitmap

View on GitHub
packages/nft-bitmap-kit/src/colors.ts

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%

Showing 1 of 1 total issue

Function fillColor has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
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) {
Severity: Minor
Found in packages/nft-bitmap-kit/src/colors.ts - About 2 hrs to fix

There are no issues that match your filters.

Category
Status