Categories: None [Edit]
color
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.2 adds a minor feature where an RGB color created from values can
silently inherit the `#name` of a predefined color if `color/rgb/colors` has
already been loaded. 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.
Total
Ranking: 1,926 of 189,104
Downloads: 14,847,958
Daily
Ranking: 1,876 of 189,083
Downloads: 8,264
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 5,612 | 1,097,990 | pdf-writer |
| 9,928 | 305,859 | miro |
| 11,632 | 219,854 | glimmer-dsl-libui |
| 13,128 | 172,022 | colorscore |
| 14,909 | 134,877 | rmthemegen |
| 15,441 | 126,422 | geo_pattern |
| 15,605 | 123,974 | gradient |
| 19,084 | 87,767 | coltrane |
| 19,470 | 85,002 | iroki |
| 19,886 | 82,041 | shade |
| 21,214 | 74,148 | cloud-mu |
| 25,985 | 55,049 | ringleader |
| 27,798 | 49,971 | colorb |
| 29,065 | 46,768 | color_namer |
| 38,006 | 32,547 | huey |
| 38,194 | 32,348 | limitless-led |
| 38,881 | 31,588 | code_rippa |
| 40,690 | 29,769 | rails-data-explorer |
| 43,282 | 27,446 | derailed-ziya |
| 43,808 | 27,012 | smurfville |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 9 | 1,221,972,098 | rake |
| 12 | 1,187,583,423 | json |
| 14 | 1,138,395,412 | minitest |
| 99 | 440,871,647 | simplecov |
| 177 | 269,359,648 | rdoc |
| 1,041 | 44,124,713 | simplecov-lcov |
| 1,118 | 40,322,800 | standard |
| 2,165 | 10,919,110 | minitest-focus |
| 2,316 | 9,112,175 | hoe |
| 3,344 | 3,904,046 | minitest-autotest |
| 48,507 | 23,490 | hoe-halostatue |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | austin |