@al-engine/render
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Al engine

Render

This is module for Rendering image to canvas.

  // this function will be called on each frame
  function update(params: UpdateParams) {
    // delta is a time passed from last frame
    params.delta;

    // setPixel for setting color for specific pixel
    params.pixels.setPixel(0, 1, 0xff0000);
  }

  // for creating a game you need a canvas and update function
  const game = createGame(canvasElement, update);
  game.start();

Readme

Keywords

none

Package Sidebar

Install

npm i @al-engine/render

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

24 kB

Total Files

12

Last publish

Collaborators

  • sasha-z