new SolidSource(renderer, options)
Allows a solid color to serve as an input element
Allows a solid color to serve as an input element
Parameters:
Name | Type | Description |
---|---|---|
renderer |
GlRenderer | GlRenderer object |
options |
Object | JSON Object |
- Implements:
- Source:
Example
var red = new SolidSource( renderer, { color: { r: 1.0, g: 0.0, b: 0.0 } } );
Methods
color(r, g, b, a)
Parameters:
Name | Type | Description |
---|---|---|
r |
float | red value |
g |
float | green value |
b |
float | blue value |
a |
float | alpha value (optional) |
- Implements:
- Source:
Returns:
color
Example
red.color( { r: 0.0, g: 0.0, b: 1.0 } );