Module: Colorspace
- Defined in:
- lib/colorspace/colorlib.rb,
lib/colorspace.rb,
lib/colorspace/version.rb
Overview
Library for working with RGB, XYZ, and LAB colorspaces
Defined Under Namespace
Classes: CIELABColor, Error, SRGBColor, SRGBLinearColor, XYZTristimulus
Constant Summary collapse
- VERSION =
'0.1.3'
- RGB_XYZ_MATRIX =
rubocop: disable Layout/SpaceInsideArrayLiteralBrackets rubocop: disable Layout/ExtraSpacing
Matrix[ [ 0.4124564, 0.3575761, 0.1804375 ], [ 0.2126729, 0.7151522, 0.0721750 ], [ 0.0193339, 0.1191920, 0.9503041 ] ].freeze
- XYZ_RGB_MATRIX =
Matrix[ [ 3.2404542, -1.5371385, -0.4985314 ], [ -0.9692660, 1.8760108, 0.0415560 ], [ 0.0556434, -0.2040259, 1.0572252 ] ].freeze
- D65 =
XYZTristimulus.new(x: 95.047, y: 100.0, z: 108.883)
- D50 =
XYZTristimulus.new(x: 96.42, y: 100.0, z: 82.51)