This repository has been archived on 2022-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
GeometryDash3D/js/main.js
2022-11-07 09:59:36 +01:00

16 lines
334 B
JavaScript

window.addEventListener("load", () => main());
const main = () => {
const cnv = document.getElementById("canvas");
const ctx = cnv.getContext("2d");
const size = 100;
ctx.fillStyle = "blue";
ctx.fillRect(
cnv.width / 2 - size / 2,
cnv.height / 2 - size / 2,
size,
size
);
};