body {
background: var(--color-background);
}
.main {
display: grid;
gap: 30px;
min-height: 100vh;
grid-auto-rows: auto 1fr auto;
padding: 30px;
}
.header {}
.header__rows {
display: grid;
grid-auto-flow: column;
justify-content: start;
align-items: center;
gap: 10px;
}
.camera {
display: grid;
justify-items: center;
align-items: center;
}
.pyramid {
display: grid;
justify-content: center;
}
.row {
display: grid;
grid-auto-flow: column;
grid-auto-columns: auto;
justify-content: center;
width: 100%;
height: 32px;
}
.brick {
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
background: var(--color-backround-second);
color: var(--color-main);
min-width: 62px;
height: 100%;
}
img.onload = function() {
canvas.width = img.width;
canvas.height = img.height;
ctx.drawImage(img, 0, 0, img.width, img.height);
};
new THREE.SphereGeometry(210, 60, 60);
ctx.beginPath();
ctx.moveTo(1, 150);
ctx.lineTo(100, 130);
ctx.lineTo(100, 230);
ctx.closePath();
ctx.stroke();
ctx.fillStyle = 'red';
ctx.fill();
pointer-events: none;
canvas
, а window
.