Skip to content

textmode.synth.js / solid

Function: solid()

Call Signature

ts
function solid(gray): SynthSource;

Generate a solid grayscale color.

Parameters

ParameterTypeDescription
graySynthParameterValueGrayscale value (0-1)

Returns

SynthSource

Example

Call Signature

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

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

SynthSource

Example