@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
31 lines (29 loc) • 759 B
TypeScript
type FadeAlphaTickerProps = {
/**
* The duration of the fade, in seconds.
* in reality the duration is not exactly in seconds because it is based on the frame rate of the game.
* @default 1
*/
duration?: number;
/**
* The type of the fade
* @default "hide"
*/
type?: "hide" | "show";
/**
* The limit of the fade
* @default type === "hide" ? 0 : 1
*/
limit?: number;
/**
* The tag to remove after the fade is done
* @default []
*/
tagToRemoveAfter?: string[] | string;
/**
* If true, the effect only starts if the canvas element have a texture
* @default false
*/
startOnlyIfHaveTexture?: boolean;
};
export type { FadeAlphaTickerProps };