# Vortex

> “Vortex —A mathematical art generator in polar coordinates.”  Parameters:  t - time  r - radius (0 ~ 1)  th - angle θ  x, y - cartesian coordinates (-1 ~ 1)  noise() - random noise function  exp() - exponential function  hypot() - hypotenuse function  Features:  • Click to change pattern  • Edit expression directly  • Sharable via URL  • Press Space to toggle resolution  Math functions available:  sin, cos, tan, abs, sqrt, exp  hypot, atan2, max, min, round  ceil, floor, random  inspired by @antfu & @aemkei

- Author: [KainXu](https://21st.dev/@xubohuah)
- License: mit
- Live preview: https://21st.dev/@xubohuah/components/vortex

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/xubohuah/vortex?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
