puff function
Builds the puffed letters of a raster: a distance field over the raster's frame and a margin for the shadow, the round profile's radius from an inflated membrane, and the nearest letter.
import { puff } from '@dioramajs/text/inflate'.
function puff(layout: Raster, ratio: number, pause?: Pause): Promise<Puff>Parameters
| Name | Type | Description |
|---|---|---|
layout | Raster | |
ratio | number | |
pause? | Pause | Default |
Defined in packages/text/src/inflate.ts.