@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
27 lines (24 loc) • 703 B
TypeScript
type TickerProgrationType = TickerProgrationLinear | TickerProgrationExponential;
interface TickerProgrationLinear {
/**
* The amount of the speed to increase every frame.
*/
amt: number;
/**
* The limit of the effect
*/
limit?: number;
type: "linear";
}
interface TickerProgrationExponential {
/**
* The percentage of the speed to increase every frame. if the percentage is 0.1, the speed will increase by 10% every frame.
*/
percentage: number;
/**
* The limit of the effect
*/
limit?: number;
type: "exponential";
}
export type { TickerProgrationExponential, TickerProgrationLinear, TickerProgrationType as default };