Skip to main content
Version: 1.x

@microsoft/fast-colors > QuantizeConfig > isBoxValid

QuantizeConfig.isBoxValid property

This predicate can be used to screen out undesirable colors from the final output. EG: excluding colors with a pixelCount below a min value.

Signature:
isBoxValid: ((box: PixelBox) => boolean) | null;