textmode.synth.js / SynthSource / solid
Method: solid()
Call Signature
ts
solid(gray): this;Generate a solid grayscale color.
Parameters
| Parameter | Type | Description |
|---|---|---|
gray | SynthParameterValue | Grayscale value (0-1) |
Returns
this
Example
Call Signature
ts
solid(
r?,
g?,
b?,
a?): this;Generate a solid color.
Parameters
| Parameter | Type | Description |
|---|---|---|
r? | SynthParameterValue | Red channel (0-1, default: 0.0) |
g? | SynthParameterValue | Green channel (0-1, default: 0.0) |
b? | SynthParameterValue | Blue channel (0-1, default: 0.0) |
a? | SynthParameterValue | Alpha channel (0-1, default: 1.0) |
Returns
this