color.lightness()
Categories: CSS | Color Object
color.lightness()Returns: Integer
Plugin: jQuery.color
Description: Get the "lightness" component of the color.
-
color.lightness()
version added: 1.2
Returns the "lightness" component of the color ( Number from 0.0 - 1.0 ).
color.lightness( value )Returns: Color
Plugin: jQuery.color
Description: Set the "lightness" component of the color.
-
color.lightness( value )
version added: 1.2value A value for the "lightness" component of the color ( Number from 0.0 - 1.0 ).
Returns a copy of the color object with the lightness set to val. For increase or decrease the value can also take a string in the format of "+=0.1" or "-=0.1".