auto_spaces 0.1.0

Spaces where worlds are able to be rendered
Documentation
1
2
3
4
5
6
export function setPixel(x, y, size, color) {
  const world = document.getElementById("canvas");
  const ctx = world.getContext("2d");
  ctx.fillStyle = color;
  ctx.fillRect(x * size, y * size, size, size);
}