Categories

color.rgba()

Categories: CSS | Color Object

color.rgba()Returns: Array

Plugin: jQuery.color

Description: Get the "rgbs" components of the color.

  • color.rgba()

    version added: 1.2

Returns a "rgba" tuple [ red, green, blue, alpha ].

color.rgba( red, green, blue, alpha )Returns: Color

Plugin: jQuery.color

Description: Set the "rgbs" components of the color.

  • color.rgba( red, green, blue, alpha )

    version added: 1.2

    red   A valid red value (Integer 0 - 255).

    green   A valid green value (Integer 0 - 255).

    blue   A valid blue value (Integer 0 - 255).

    alpha   A valid alpha transparency value (Number 0.0 - 1.0).

  • color.rgba( rgba )

    version added: 1.2

    rgba   A rgba color map. Example: { red: red, green: green, blue: blue, alpha: alpha }.

  • color.rgba( rgba )

    version added: 1.2

    rgba   A rgba color tuple. Example: [ red, green, blue, alpha ].

Returns a copy of the color with any defined values set to the new value.