````tabs
:::tab title="Sine"

```interact
slider freq range=0.5..5 step=0.1 default=1 label="Frequency"
slider amp range=0.5..3 step=0.1 default=1 label="Amplitude"
template vega-lite: {
  "data": { "sequence": { "start": 0, "stop": 6.28, "step": 0.05, "as": "x" } },
  "transform": [ { "calculate": "{amp} * sin({freq} * datum.x)", "as": "y" } ],
  "mark": { "type": "line", "strokeWidth": 2.5, "color": "#7E73F7" },
  "encoding": { "x": { "field": "x", "type": "quantitative" }, "y": { "field": "y", "type": "quantitative", "scale": { "domain": [-3, 3] } } },
  "width": 300, "height": 150, "background": null,
  "config": { "view": { "stroke": null }, "axis": { "labelColor": "#6b7185", "titleColor": "#6b7185", "gridColor": "rgba(20,20,40,0.07)", "domainColor": "rgba(20,20,40,0.15)", "tickColor": "rgba(20,20,40,0.15)" } }
}
```

:::

:::tab title="Square"

```interact
slider freq range=0.5..5 step=0.1 default=1 label="Frequency"
slider amp range=0.5..3 step=0.1 default=1 label="Amplitude"
template vega-lite: {
  "data": { "sequence": { "start": 0, "stop": 6.28, "step": 0.02, "as": "x" } },
  "transform": [ { "calculate": "{amp} * (sin({freq} * datum.x) >= 0 ? 1 : -1)", "as": "y" } ],
  "mark": { "type": "line", "strokeWidth": 2.5, "color": "#0d9488", "interpolate": "step-after" },
  "encoding": { "x": { "field": "x", "type": "quantitative" }, "y": { "field": "y", "type": "quantitative", "scale": { "domain": [-3, 3] } } },
  "width": 300, "height": 150, "background": null,
  "config": { "view": { "stroke": null }, "axis": { "labelColor": "#6b7185", "titleColor": "#6b7185", "gridColor": "rgba(20,20,40,0.07)", "domainColor": "rgba(20,20,40,0.15)", "tickColor": "rgba(20,20,40,0.15)" } }
}
```

:::

:::tab title="Triangle"

```interact
slider freq range=0.5..5 step=0.1 default=1 label="Frequency"
slider amp range=0.5..3 step=0.1 default=1 label="Amplitude"
template vega-lite: {
  "data": { "sequence": { "start": 0, "stop": 6.28, "step": 0.02, "as": "x" } },
  "transform": [ { "calculate": "{amp} * (2/PI) * asin(sin({freq} * datum.x))", "as": "y" } ],
  "mark": { "type": "line", "strokeWidth": 2.5, "color": "#d97706" },
  "encoding": { "x": { "field": "x", "type": "quantitative" }, "y": { "field": "y", "type": "quantitative", "scale": { "domain": [-3, 3] } } },
  "width": 300, "height": 150, "background": null,
  "config": { "view": { "stroke": null }, "axis": { "labelColor": "#6b7185", "titleColor": "#6b7185", "gridColor": "rgba(20,20,40,0.07)", "domainColor": "rgba(20,20,40,0.15)", "tickColor": "rgba(20,20,40,0.15)" } }
}
```

:::
````
