started compartmentlising animations 0.1

This commit is contained in:
Sam
2022-03-16 00:51:43 +13:00
parent 0be69ea7c3
commit 70421f763f
15 changed files with 1270 additions and 237 deletions

View File

@@ -0,0 +1,21 @@
function Draw_center() {
ctx.beginPath();
ctx.moveTo(centerX - 100, centerY);
ctx.lineTo(centerX + 100, centerY);
ctx.moveTo(centerX, centerY - 100);
ctx.lineTo(centerX, centerY + 100);
ctx.strokeStyle = "red";
ctx.stroke();
console.log("drawn center")
}
function DrawBorder(){
ctx.beginPath();
ctx.moveTo(0,0);
ctx.lineTo(ctx.canvas.width, 0);
ctx.lineTo(ctx.canvas.width, ctx.canvas.height);
ctx.lineTo(0, ctx.canvas.height);
ctx.lineTo(0,0);
ctx.strokeStyle = "red";
ctx.stroke();
}