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

17 lines
334 B
JavaScript
Raw Normal View History

2022-11-07 09:10:20 +01:00
window.addEventListener("load", () => main());
const main = () => {
2022-11-07 09:59:36 +01:00
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
);
2022-11-07 09:10:20 +01:00
};