pixi.js
    Preparing search index...

    Type Alias RenderFunctionAdvanced

    RenderFunction: (renderer: Renderer) => void

    A function that takes a renderer and does the custom rendering logic. This is the function that will be called each frame.

    Type declaration

      • (renderer: Renderer): void
      • Parameters

        Returns void

    import { RenderContainer } from 'pixi.js';

    // create a new render container
    const renderContainer = new RenderContainer((renderer) => {
    // custom render logic here
    renderer.clear({
    clearColor: 'green', // clear the screen to green when rendering this item
    });
    });