ChromaPulse
One time purchase and 5 times trial.

“ChromaPulse” は塗りに画像が設定されたノードの
ドミナントカラー(支配色)やプロミネントカラー(特長色)を抽出し、パレットを生成する
Figmaで動作する色調解析プラグインです。
マルチプロセス
同時に最大10個までの
画像解析を可能としています。

アルゴリズム
-
ドミナントカラー
画像を支配する色を満遍なく解析し、パレットの生成を行います。
color-thief が採用するメディアンカット量子化(MMCQ)アルゴリズムによる抽出方法です。
-
プロミネントカラー
画像の特長的な色を中心に抽出し、ドミナントカラーよりもやや尖った結果を得ます。
color.js によるシンプルな機械的抽出方法です。
-
アベレージカラー
画像の平均色を得ます。
※パレット数の指定に関わらず、アベレージカラーの抽出で得られる結果は1色のみとなります。
スキャン粒度
画像解析時のスキャン粒度の指定です。
粒度が細かければ処理の負荷が高まるため
処理速度は低下し、
大きい場合には
処理速度が高速化します。
粒度が細かければより良い結果を
得られるというものではなく、
パレットの抽出バリエーションに
変化を与えるオプションとお考えください。
プロミネントカラーの抽出に
より大きく影響を与えます。

ライブラリ
lokesh/color-thief
Copyright (c) 2015 Lokesh Dhakar
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
luukdv/color.js
Copyright (c) 2023 Luuk de Vlieger
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.