Namespace sandboxe.color
Defined in: docbase.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Functions to work with color objects
|
Method Attributes | Method Name and Description |
---|---|
<static> |
sandboxe.color.create(param, green, blue, alpha)
Creates a new RGBA color object.
|
Method Detail
<static>
{color}
sandboxe.color.create(param, green, blue, alpha)
Creates a new RGBA color object.
- Parameters:
- {string|number} param
- If the first parameter is alone, it is interpreted as a string as if calling color.set. If not alone, it is a decimal for the red component.
- {number} green
- green value as a decimal. 0.f to 1.f.
- {number} blue
- Blue value as a decimal. 0.f to 1.f.
- {number} alpha
- Alpha value as a decimal. 0.f to 1.f.
- Returns:
- {color}