Method: Color::Palette::MonoContrast#minimum_brightness_diff
- Defined in:
- lib/color/palette/monocontrast.rb
permalink #minimum_brightness_diff ⇒ Object
The minimum brightness difference between the background and the foreground, and must be between 0..1. Setting this value will regenerate the palette based on the base colours. The default value for this is 125 / 255.0. If this value is set to nil
, it will be restored to the default.
39 40 41 |
# File 'lib/color/palette/monocontrast.rb', line 39 def minimum_brightness_diff @minimum_brightness_diff end |