rentParams[key] = Number(input.value);
            span.textContent = input.value;
        });
        currentParams[key] = param.value;
    });
}

function resizeCanvas() {
    canvas.width = window.innerWidth;
    canvas.height = window.innerHeight;
}

document.getElementById('polyhedronType').addEventListener('change', (e) => {
    currentPolyhedronType = e.target.value;
    createControls();
});

canvas.addEventListener('mousedown', (e) => {
    isDragging = true;
    lastX = e.clientX;
    lastY = e.cl