Search Docs
Loading...
Skip to content

Interface: DominantColorsOptions

Options for block.getDominantColors. Mirrors @cesdk/node.

Properties#

Property Type Description
count? number Number of dominant colors to extract. Default: 5.
ignoreWhite? boolean Exclude near-white pixels from the analysis. Default: false.
abortSignal? AbortSignal Stops the analysis when it aborts, and the promise rejects. An analysis waits while a resource of the block loads, so a signal gives it a deadline.