Skip to content

textmode.js / layering / TextmodeLayer / opacity

Method: opacity()

ts
opacity(opacity?): number | void;

Set or get this layer's opacity.

Parameters

ParameterTypeDescription
opacity?numberOpacity from 0 to 1.

Returns

number | void

Current opacity when called without arguments.

Example