Class: ColorCalculator::Conversion::LchToLab

Inherits:
Object
  • Object
show all
Extended by:
ColorCalculator::Composable
Defined in:
lib/color_calculator/conversion/lch_to_lab.rb

Instance Method Summary collapse

Methods included from ColorCalculator::Composable

to_proc

Constructor Details

#initialize(lch) ⇒ LchToLab

Returns a new instance of LchToLab.



13
14
15
# File 'lib/color_calculator/conversion/lch_to_lab.rb', line 13

def initialize(lch)
  @lch = lch
end

Instance Method Details

#callObject



17
18
19
# File 'lib/color_calculator/conversion/lch_to_lab.rb', line 17

def call
  Clump::Lab.new(lightness, alpha, beta)
end