Registry / utility / colorscore

colorscore

JSON →
library0.0.5rbrubygemsunverified

Finds dominant colors in an image and scores them against a user-defined palette using the CIE2000 Delta E formula.

gem install colorscore
INSTALL
IMPORT
SIG · COLORSCORE
C
colorscore
utilityrubyv0.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Colorscore
✓ require 'colorscore'

Score an image against a color palette

require 'colorscore' palette = Colorscore::Palette.new(['#ff0000', '#00ff00', '#0000ff']) score = Colorscore::Score.new('image.png', palette) score.dominant_colors.each { |color| puts color.hex }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources
colorscore — gem install colorscore · libregistry