Module: ColorContrastCalc::Deprecated::Color::Factory
- Included in:
- Color::Factory
- Defined in:
- lib/color_contrast_calc/deprecated.rb
Instance Method Summary collapse
-
#new_from_hsl(hsl, name = nil) ⇒ Object
deprecated
Deprecated.
Use Color.from_hsl() instead.
Instance Method Details
#new_from_hsl(hsl, name = nil) ⇒ Object
Deprecated.
Use Color.from_hsl() instead.
16 17 18 19 |
# File 'lib/color_contrast_calc/deprecated.rb', line 16 def new_from_hsl(hsl, name = nil) Deprecated.warn(__method__, :from_hsl) new(Utils.hsl_to_rgb(hsl), name) end |