textmode.js / layering / TextmodeLayer / opacity
Method: opacity()
ts
opacity(opacity?): number | void;Set or get this layer's opacity.
Parameters
| Parameter | Type | Description |
|---|---|---|
opacity? | number | Opacity from 0 to 1. |
Returns
number | void
Current opacity when called without arguments.