Module: ColorContrastCalc::Deprecated::Color
- Included in:
- Color
- Defined in:
- lib/color_contrast_calc/deprecated.rb
Defined Under Namespace
Modules: Factory
Instance Method Summary collapse
-
#new_brightness_color(ratio, name = nil) ⇒ Object
deprecated
Deprecated.
Use #with_brightness instead
-
#new_contrast_color(ratio, name = nil) ⇒ Object
deprecated
Deprecated.
Use #with_contrast instead
-
#new_grayscale_color(ratio = 100, name = nil) ⇒ Object
deprecated
Deprecated.
Use #with_grayscale instead
-
#new_hue_rotate_color(degree, name = nil) ⇒ Object
deprecated
Deprecated.
Use #with_hue_rotate instead
-
#new_invert_color(ratio = 100, name = nil) ⇒ Object
deprecated
Deprecated.
Use #with_invert instead
-
#new_saturate_color(ratio, name = nil) ⇒ Object
deprecated
Deprecated.
Use #with_saturate instead
Instance Method Details
#new_brightness_color(ratio, name = nil) ⇒ Object
Deprecated.
Use #with_brightness instead
29 30 31 32 |
# File 'lib/color_contrast_calc/deprecated.rb', line 29 def new_brightness_color(ratio, name = nil) Deprecated.warn(__method__, :with_brightness) with_brightness(ratio, name) end |
#new_contrast_color(ratio, name = nil) ⇒ Object
Deprecated.
Use #with_contrast instead
23 24 25 26 |
# File 'lib/color_contrast_calc/deprecated.rb', line 23 def new_contrast_color(ratio, name = nil) Deprecated.warn(__method__, :with_contrast) with_contrast(ratio, name) end |
#new_grayscale_color(ratio = 100, name = nil) ⇒ Object
Deprecated.
Use #with_grayscale instead
53 54 55 56 |
# File 'lib/color_contrast_calc/deprecated.rb', line 53 def new_grayscale_color(ratio = 100, name = nil) Deprecated.warn(__method__, :with_grayscale) with_grayscale(ratio, name) end |
#new_hue_rotate_color(degree, name = nil) ⇒ Object
Deprecated.
Use #with_hue_rotate instead
41 42 43 44 |
# File 'lib/color_contrast_calc/deprecated.rb', line 41 def new_hue_rotate_color(degree, name = nil) Deprecated.warn(__method__, :with_hue_rotate) with_hue_rotate(degree, name) end |
#new_invert_color(ratio = 100, name = nil) ⇒ Object
Deprecated.
Use #with_invert instead
35 36 37 38 |
# File 'lib/color_contrast_calc/deprecated.rb', line 35 def new_invert_color(ratio = 100, name = nil) Deprecated.warn(__method__, :with_invert) with_invert(ratio, name) end |
#new_saturate_color(ratio, name = nil) ⇒ Object
Deprecated.
Use #with_saturate instead
47 48 49 50 |
# File 'lib/color_contrast_calc/deprecated.rb', line 47 def new_saturate_color(ratio, name = nil) Deprecated.warn(__method__, :with_saturate) with_saturate(ratio, name) end |