jPaq Docs - Color.prototype.g()

Quick Stats

Target Platforms:  PC (JScript) and the web (JavaScript)
Download Count:  978

Summary

Gets or sets the amount of green in the color.

Parameters

  1. [value] => Number
    Optional. If specified, it must be a number inclusively between 0 and 255 which will be set as the amount of green in this color.

Returns

Object
If the value parameter is specified, this function will return a reference to the color object so that calls can be chained. If the value parameter isn't specified, this function will return the amount of green as a number.