color 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/color/version.rb +1 -1
- data/lib/color.rb +12 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de0f595f559249d4eed1b1a71514d9b31caf458544b10d791b954b68d42ae169
|
4
|
+
data.tar.gz: 1d6680d9805b0556a7b865b5bf9bced7b089ed72c8889a7187ac30a082826efb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb3c94216b72f936f2252de8b698ff28e8fbc240bee72fa5cd4d016f3a911de3755b8ba892cbe857a8f3f4a9aeaef4bd79132e14c4230eff2f047690a8940d2
|
7
|
+
data.tar.gz: 275c0cdaed2c2474eedc59a915910dca1573a95f35f7cf41a5758f60284dbb3402454b56c17fb0d833de0b57047dddde25df09f2211585fe5957be68ee1791f2
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
Color is a Ruby library to provide RGB, CMYK, HSL, and other color space
|
14
14
|
manipulation support to applications that require it. It provides optional named
|
15
|
-
RGB colors that are commonly supported in HTML,
|
15
|
+
RGB colors that are commonly supported in HTML, SVG, and X11 applications.
|
16
16
|
|
17
17
|
The Color library performs purely mathematical manipulation of the colors based
|
18
18
|
on color theory without reference to device color profiles (such as sRGB or
|
@@ -33,7 +33,7 @@ changes are:
|
|
33
33
|
- Color palettes have been removed.
|
34
34
|
- `Color::CSS` and `Color::CSS#[]` have been removed.
|
35
35
|
|
36
|
-
##
|
36
|
+
## Example
|
37
37
|
|
38
38
|
Suppose you want to make a given RGB color a little lighter. Adjusting the RGB
|
39
39
|
color curves will change the hue and saturation will also change. Instead, use
|
data/lib/color/version.rb
CHANGED
data/lib/color.rb
CHANGED
@@ -7,29 +7,25 @@
|
|
7
7
|
# - **changelog**: [CHANGELOG](rdoc-ref:CHANGELOG.md)
|
8
8
|
#
|
9
9
|
# \Color is a Ruby library to provide RGB, CMYK, HSL, and other color space manipulation
|
10
|
-
# support to applications that require it. It provides
|
10
|
+
# support to applications that require it. It provides optional named RGB colors that are
|
11
11
|
# commonly supported in HTML, SVG, and X11 applications.
|
12
12
|
#
|
13
13
|
# The \Color library performs purely mathematical manipulation of the colors based on
|
14
14
|
# color theory without reference to device color profiles (such as sRGB or Adobe RGB). For
|
15
15
|
# most purposes, when working with RGB and HSL color spaces, this won't matter. Absolute
|
16
|
-
# color spaces (like CIE LAB and CIE XYZ)
|
17
|
-
#
|
18
|
-
#
|
16
|
+
# color spaces (like CIE LAB and CIE XYZ) cannot be reliably converted to relative color
|
17
|
+
# spaces (like RGB) without color profiles. When necessary for conversions, \Color
|
18
|
+
# provides \D65 and \D50 reference white values in Color::XYZ.
|
19
19
|
#
|
20
|
-
#
|
21
|
-
#
|
20
|
+
# Color 2.0 is a major release, dropping support for all versions of Ruby prior to 3.2 as
|
21
|
+
# well as removing or renaming a number of features. The main breaking changes are:
|
22
22
|
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
# `new` class method, instead using only `from_*` class methods. There is always
|
30
|
-
# a `from_values` class method which represents the native color channel values (which may
|
31
|
-
# not match the internal representation). This method _may_ have a counterpart that is
|
32
|
-
# recommended for readability.
|
23
|
+
# - Color classes are immutable Data objects; they are no longer mutable.
|
24
|
+
# - RGB named colors are no longer loaded on gem startup, but must be required explicitly
|
25
|
+
# (this is _not_ done via `autoload` because there are more than 100 named colors with
|
26
|
+
# spelling variations) with `require "color/rgb/colors"`.
|
27
|
+
# - Color palettes have been removed.
|
28
|
+
# - `Color::CSS` and `Color::CSS#[]` have been removed.
|
33
29
|
module Color
|
34
30
|
##
|
35
31
|
# The maximum "resolution" for color math; if any value is less than or equal to this
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: color
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
@@ -213,7 +213,7 @@ dependencies:
|
|
213
213
|
description: |-
|
214
214
|
Color is a Ruby library to provide RGB, CMYK, HSL, and other color space
|
215
215
|
manipulation support to applications that require it. It provides optional named
|
216
|
-
RGB colors that are commonly supported in HTML,
|
216
|
+
RGB colors that are commonly supported in HTML, SVG, and X11 applications.
|
217
217
|
|
218
218
|
The Color library performs purely mathematical manipulation of the colors based
|
219
219
|
on color theory without reference to device color profiles (such as sRGB or
|