rfw2d
    Preparing search index...

    rfw2d

    rfw npm

    Documentation · Samples · Reference

    2D rendering library for WebGL.

    • Get started easily with apps, providing canvas context handling, resizing, etc.
    • Fast, batched out-of-the-box renderers (textured mesh, lines, text, sprites)
    • Scene (graphs)
    • Low abstraction render tooling
    • Change tracking: only render when you need to and save battery
    • Performance in mind with batching, special data structures, and performance helpers
    • Math utility modules
    • Minimal dependencies

    Install the package from npm:

    npm install rfw2d
    

    And import from rfw2d:

    import { Vec2 } from 'rfw2d';
    

    For more instructions and samples, check out the guide.

    Use npm run dev <app path> to run any of the apps in a Vite dev web server. E.g.:

    npm run dev samples/bunnymark
    

    to run a sample.

    Use npm run test to watch tests and npm run types:watch to continuously check types.

    Use npm run docs:dev to start the doc dev web server. The benchmarks are available under benchmarks/.

    The reference is built separately, with npm run reference:build and does not have a dev version.

    MIT