@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
12 lines (9 loc) • 387 B
text/typescript
import { Texture, TextStyle, TextStyleOptions } from 'pixi.js';
/**
* Get a texture from a url.
* @param imageUrl is the url of the image.
* @returns the texture of the image, or a text with the error.
*/
declare function getTexture(imageUrl: string): Promise<Texture | void>;
declare function getTextStyle(style: TextStyle): TextStyleOptions;
export { getTextStyle, getTexture };