bulge
Magnify or pinch the child inside a disc around center.
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
map: warps.bulge({center: p('center'), strength: p('strength'), radius: p('radius'), falloff: p('falloff')})
See also
twirl— Twist the child aroundcenter, turning more the farther a pixel is from it.stretch— Stretch the child along one direction, starting atcenter.