lib/chroma/rgb_generator/from_hsl.rb in chroma-0.0.1.alpha.1 vs lib/chroma/rgb_generator/from_hsl.rb in chroma-0.0.1.alpha.2
- old
+ new
@@ -1,14 +1,14 @@
module Chroma
module RgbGenerator
class FromHsl < Base
def initialize(format, hsl)
- @format = format || :hsl
+ @format = format
@hsl = hsl
end
def generate
- [Converters::RgbConverter.convert_hsl(@hsl), @format]
+ FromHslValues.new(@format, *@hsl.to_a).generate
end
end
end
end