Skip to main content

alpha

Gets the current transparency level of the shadow panel.

Parameters

None.

Returns

Promise<number> -- the current alpha value (0--1).

Example

import { shadowPanel } from "@hmcs/sdk";

const current = await shadowPanel.alpha();
console.log(current); // e.g. 0.7