---
title: "bulge"
description: "Magnify or pinch the child inside a disc around `center`."
group: "space"
groupTitle: "Shapes, frames & warps"
categoryId: "warps"
categorySlug: "warps"
categoryTitle: "Warps"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/warps.ts#L140"
---

# bulge

Magnify or pinch the child inside a disc around `center`.

```ts
bulge(slots: {center: ArgSpec; strength: ArgSpec; radius: ArgSpec; falloff: ArgSpec}): UvMapSource
```

Import `warps` from `shaders/std` and use `warps.bulge`.

`strength` runs −1 to 1: positive bulges out, negative pinches in. `radius` sets the size of the disc (1 reaches about half the canvas height). `falloff` runs 0 (hard edge) to 1 (soft).

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{center: ArgSpec; strength: ArgSpec; radius: ArgSpec; falloff: ArgSpec}` |  |

## Example

```ts
map: warps.bulge({center: p('center'), strength: p('strength'), radius: p('radius'), falloff: p('falloff')})
```

## See also

- [`twirl`](/docs/primitives/warps/twirl) — Twist the child around `center`, turning more the farther a pixel is from it.
- [`stretch`](/docs/primitives/warps/stretch) — Stretch the child along one direction, starting at `center`.

## Used by

[Bulge](/docs/components/bulge)