# weights

function in `@dioramajs/text/fire`

```ts
import { weights } from '@dioramajs/text/fire'
```

Emission weights from a CSS color, the brightest channel 1; natural fire without one.

```ts
function weights(hex: string | undefined): [number, number, number]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `hex` | `string \| undefined` |  |

Defined in [packages/text/src/fire.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/fire.ts#L171).
