Class: ASEPalette::Color::LAB
- Inherits:
-
ASEPalette::Color
- Object
- ASEPalette::Color
- ASEPalette::Color::LAB
- Defined in:
- lib/ase-palette/color.rb
Instance Attribute Summary collapse
-
#a ⇒ Object
Returns the value of attribute a.
-
#b ⇒ Object
Returns the value of attribute b.
-
#l ⇒ Object
Returns the value of attribute l.
Attributes inherited from ASEPalette::Color
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(name, l, a, b, type = DEFAULT_COLOR_TYPE) ⇒ LAB
constructor
A new instance of LAB.
Methods inherited from ASEPalette::Color
Constructor Details
#initialize(name, l, a, b, type = DEFAULT_COLOR_TYPE) ⇒ LAB
Returns a new instance of LAB.
65 66 67 68 69 70 71 |
# File 'lib/ase-palette/color.rb', line 65 def initialize(name, l, a, b, type = DEFAULT_COLOR_TYPE) @name = name @l = l @a = a @b = b @type = type end |
Instance Attribute Details
#a ⇒ Object
Returns the value of attribute a.
64 65 66 |
# File 'lib/ase-palette/color.rb', line 64 def a @a end |
#b ⇒ Object
Returns the value of attribute b.
64 65 66 |
# File 'lib/ase-palette/color.rb', line 64 def b @b end |
#l ⇒ Object
Returns the value of attribute l.
64 65 66 |
# File 'lib/ase-palette/color.rb', line 64 def l @l end |
Instance Method Details
#data ⇒ Object
72 73 74 |
# File 'lib/ase-palette/color.rb', line 72 def data { l: @l, a: @a, b: @b } end |