Method: ColorLib::RGB#lighten_by

Defined in:
lib/color_lib/rgb.rb

#lighten_by(percent) ⇒ Object

Mix the RGB hue with White so that the RGB hue is the specified percentage of the resulting colour. Strictly speaking, this isn’t a darken_by operation.



230
231
232
# File 'lib/color_lib/rgb.rb', line 230

def lighten_by(percent)
  mix_with(White, percent)
end