Metadata


Name
color
Version
2.1.1
Platform
ruby
Authors
Austin Ziegler
Matt Lyon
Bindir
bin
Date
1980-01-02 00:00:00 UTC
Dependencies
hoe (~> 4.0, development)
hoe-halostatue (~> 2.1, >= 2.1.1, development)
hoe-git (~> 1.6, development)
minitest (~> 5.8, development)
minitest-autotest (~> 1.0, development)
minitest-focus (~> 1.1, development)
minitest-moar (~> 0.0, development)
rake (>= 10.0, < 14, development)
rdoc (>= 0.0, < 7, development)
standard (~> 1.0, development)
json (>= 0.0, development)
simplecov (~> 0.22, development)
simplecov-lcov (~> 0.8, development)
Description
Color is a Ruby library to provide RGB, CMYK, HSL, and other color space manipulation support to applications that require it. It provides optional named RGB colors that are commonly supported in HTML, SVG, and X11 applications. The Color library performs purely mathematical manipulation of the colors based on color theory without reference to device color profiles (such as sRGB or Adobe RGB). For most purposes, when working with RGB and HSL color spaces, this won't matter. Absolute color spaces (like CIE LAB and CIE XYZ) cannot be reliably converted to relative color spaces (like RGB) without color profiles. When necessary for conversions, Color provides D65 and D50 reference white values in Color::XYZ. Color 2.1 fixes a Color::XYZ bug where the values were improperly clamped and adds more Color::XYZ white points for standard illuminants. It builds on the Color 2.0 major release, dropping support for all versions of Ruby prior to 3.2 as well as removing or renaming a number of features. The main breaking changes are: - Color classes are immutable Data objects; they are no longer mutable. - RGB named colors are no longer loaded on gem startup, but must be required explicitly (this is _not_ done via `autoload` because there are more than 100 named colors with spelling variations) with `require "color/rgb/colors"`. - Color palettes have been removed. - `Color::CSS` and `Color::CSS#[]` have been removed.
Email
halostatue@gmail.com
matt@postsomnia.com
Extra rdoc files
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTORS.md
LICENCE.md
Manifest.txt
README.md
SECURITY.md
licences/dco.txt
Files
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTORS.md
LICENCE.md
Manifest.txt
README.md
Rakefile
SECURITY.md
lib/color.rb
lib/color/cielab.rb
lib/color/cmyk.rb
lib/color/grayscale.rb
lib/color/hsl.rb
lib/color/rgb.rb
lib/color/rgb/colors.rb
lib/color/version.rb
lib/color/xyz.rb
lib/color/yiq.rb
licences/dco.txt
test/fixtures/cielab.json
test/minitest_helper.rb
test/test_cmyk.rb
test/test_color.rb
test/test_grayscale.rb
test/test_hsl.rb
test/test_rgb.rb
test/test_yiq.rb
Homepage
https://github.com/halostatue/color
Licenses
MIT
Metadata
{"source_code_uri"=>"https://github.com/halostatue/color", "bug_tracker_uri"=>"https://github.com/halostatue/color/issues", "changelog_uri"=>"https://github.com/halostatue/color/blob/main/CHANGELOG.md", "rubygems_mfa_required"=>"true"}
Rdoc options
--main
README.md
Require paths
lib
Required ruby version
>= 3.2
Required rubygems version
>= 0
Rubygems version
3.6.9
Specification version
4
Summary
Color is a Ruby library to provide RGB, CMYK, HSL, and other color space manipulation support to applications that require it
Original platform
ruby
New platform
ruby