Skip to content

textmode.synth.js / SynthSource / solid

Method: solid() ​

Call Signature ​

ts
solid(gray): this;

Generate a solid grayscale color.

Parameters ​

ParameterTypeDescription
graySynthParameterValueGrayscale value (0-1)

Returns ​

this

Example ​

Call Signature ​

ts
solid(
   r?, 
   g?, 
   b?, 
   a?): this;

Generate a solid color.

Parameters ​

ParameterTypeDescription
r?SynthParameterValueRed channel (0-1, default: 0.0)
g?SynthParameterValueGreen channel (0-1, default: 0.0)
b?SynthParameterValueBlue channel (0-1, default: 0.0)
a?SynthParameterValueAlpha channel (0-1, default: 1.0)

Returns ​

this

Example ​