Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation
RGBColor

RGBColor Class Reference

Constructors

Instance Methods

Constructors

new RGBColor(parameters)

Initializes an instance of RGBColor.

Instance Methods

rGBColor.getBlue() ⇒ Number

Get the Blue

Kind: Instance method of RGBColor
Returns: Number - the KEY_BLUE value

rGBColor.getGreen() ⇒ Number

Get the Green

Kind: Instance method of RGBColor
Returns: Number - the KEY_GREEN value

rGBColor.getRed() ⇒ Number

Get the Red

Kind: Instance method of RGBColor
Returns: Number - the KEY_RED value

rGBColor.setBlue(blue) ⇒ RGBColor

Set the Blue

Kind: Instance method of RGBColor
Returns: RGBColor - The class instance for method chaining.

ParamTypeDescription
blue Number The desired Blue. {'num_min_value': 0, 'num_max_value': 255}

rGBColor.setGreen(green) ⇒ RGBColor

Set the Green

Kind: Instance method of RGBColor
Returns: RGBColor - The class instance for method chaining.

ParamTypeDescription
green Number The desired Green. {'num_min_value': 0, 'num_max_value': 255}

rGBColor.setRed(red) ⇒ RGBColor

Set the Red

Kind: Instance method of RGBColor
Returns: RGBColor - The class instance for method chaining.

ParamTypeDescription
red Number The desired Red. {'num_min_value': 0, 'num_max_value': 255}
View on GitHub.com
Previous Section Next Section