he position, it can be beneficial to calculate the size of the rectangle dynamically based on the size of the canvas. Building on the example from above, the following code shows a truly dynamic design, where the static numbers used for size and spacing have been replaced by calculations. Now, both the position and size of the rectangle scales with the canvas automatically.</p>

    {% p5 shape/figure-and-ground/use-variables.js class:'text-width' %}
    <div class="text-width">
      <pre class="text-width