Composing Functionality and VPLs and Layers

demo gif

<script>
export let inner = 0.5;
export let outer = 0.75;
export let vertices = 10;

// ...

<Props>
  <Slider label='Sides' bind:value={vertices} min={5} max={20} step={1} />
  <Slider label='Inner Radius' bind:value={inner} min={0} max={2} step={0.01} />
  <Slider label='Outer Radius' bind:value={outer} min={0} max={2} step={0.01} />
</Props>

(notice bind:value={...})

Szymon Kaliski © 2020
mailtwittergithubwebring