Categories

color.red()

Categories: CSS | Color Object

color.red()Returns: Integer

Plugin: jQuery.color

Description: Get the "red" component of the color.

  • color.red()

    version added: 1.2

Returns the "red" component of the color ( Integer from 0 - 255 ).

color.red( value )Returns: Color

Plugin: jQuery.color

Description: Set the "red" component of the color.

  • color.red( value )

    version added: 1.2

    value   A value for the "red" component of the color ( Integer from 0 - 255 ).

Returns a copy of the color object with the red set to val. For increase or decrease the value can also take a string in the format of "+=1" or "-=1".