{"id":78748,"library":"color","title":"Color","description":"A Ruby library for color space manipulation supporting RGB, CMYK, HSL, and other color models with mathematical operations.","status":"active","version":"2.2.0","language":"ruby","source_language":null,"source_url":"https://github.com/halostatue/color","tags":["color","rgb","cmyk","hsl","conversion","utility"],"install":[{"cmd":"gem install color","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'color', '~> 2.2.0'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Color","correct":"require 'color'"}],"quickstart":{"code":"require 'color'\nred = Color::RGB.new(255, 0, 0)\nred.to_hsl","lang":"ruby","description":"Create an RGB color and convert it to HSL."},"warnings":[{"fix":"Use Color::RGB.new with new values instead of modifying existing objects.","message":"Color classes are now immutable Data objects in version 2.0+; mutation attempts will fail.","severity":"breaking","affected_versions":">= 2.0.0"},{"fix":"Add `require 'color/rgb/colors'` to your code if you need named colors like 'red' or 'blue'.","message":"Named RGB colors are no longer loaded automatically; they must be explicitly required.","severity":"breaking","affected_versions":">= 2.0.0"}],"env_vars":null,"search_vec":"'cmyk':11,22 'color':1,6,15,20 'convers':24 'hsl':12,23 'librari':4 'manipul':8 'mathemat':18 'model':16 'oper':19 'rgb':10,21 'rubi':3 'space':7 'support':9 'util':25","created_at":"2026-06-18T04:29:31.918237+00:00","updated_at":"2026-06-18T04:29:31.918237+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/halostatue/color","github":"https://github.com/halostatue/color","docs":"http://www.rubydoc.info/gems/color/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}