Interface DominantColorOptions

interface DominantColorOptions {
    ignoreBlack?: boolean;
    ignoreWhite?: boolean;
    threshold?: number;
}

Properties

ignoreBlack?: boolean

Whether to ignore dark colors (all channels below the threshold). Default: true

ignoreWhite?: boolean

Whether to ignore light colors (all channels above 255 minus the threshold). Default: true

threshold?: number

The black/white threshold (0-64, in steps of 4 channel values). Default: 15