Skip to content

al-engine/render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published