LogoPixi’VN

Canvas (WebGL/WebGPU)

Panoramica su come Pixi'VN utilizza PixiJS per il rendering, differenze tra Pixi'VN e PixiJS e come interagire con gli strumenti canvas e di debug.

Pixi’VN utilizza PixiJS per il rendering. You can use the Pixi’VN API to add images, text, and animations to the PixiJS canvas (or, more precisely, to the 2D WebGL/WebGPU rendering engine).

Usare

ink

Puoi usare questo metodo con la sintassi ink. Scopri di più qui.

To interact with the PixiJS application, you can use the canvas element, which acts as a wrapper. With it, you can add the set of components provided by Pixi’VN and start animations.

import { canvas, Sprite } from "@drincs/pixi-vn"; 

export const startLabel = newLabel("start", [
    () => {
        let sprite = new Sprite({}); 
        canvas.add("sprite", sprite); 
    },
]);

Altre funzionalità

On this page