     <input type="range" id="complexity" min="1" max="7" value="4" step="1">
        <span id="complexityValue">4</span>
    </div>
    <canvas id="canvas" width="800" height="800"></canvas>
    <script>
        const canvas = document.getElementById('canvas');
        const ctx = canvas.getContext('2d');
        const redrawBtn = document.getElementById('redraw');
        const complexitySlider = document.getElementById('complexity');
        const complexityValue = document.getElementById('complexityValue