Categories

color.alpha()

Categories: CSS | Color Object

color.alpha()Returns: Integer

Plugin: jQuery.color

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

  • color.alpha()

    version added: 1.2

Returns the "alpha" component of the color ( Number from 0.0 - 1.0 ).

color.alpha( value )Returns: Color

Plugin: jQuery.color

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

  • color.alpha( value )

    version added: 1.2

    value   A value for the "alpha" component of the color ( Number from 0.0 - 1.0 ).

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