Registry / utility / color
library2.2.0rbrubygemsunverified

A Ruby library for color space manipulation supporting RGB, CMYK, HSL, and other color models with mathematical operations.

gem install color
INSTALL
IMPORT
SIG · COLOR
C
color
utilityrubyv2.2.0
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.

Color
require 'color'

Create an RGB color and convert it to HSL.

require 'color' red = Color::RGB.new(255, 0, 0) red.to_hsl
Debug
Known issues
breakingColor classes are now immutable Data objects in version 2.0+; mutation attempts will fail.
fix
Use Color::RGB.new with new values instead of modifying existing objects.
affects: >= 2.0.0
breakingNamed RGB colors are no longer loaded automatically; they must be explicitly required.
fix
Add `require 'color/rgb/colors'` to your code if you need named colors like 'red' or 'blue'.
affects: >= 2.0.0
Upgrade
Version history
2.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
color — gem install color · libregistry