# alphaOf

function in `@dioramajs/text/ribbon`

```ts
import { alphaOf } from '@dioramajs/text/ribbon'
```

The alpha of a computed CSS color, 1 when it has none: `rgb(0 0 0 / 0.5)`, `rgba(0, 0, 0, 0.5)`.

```ts
function alphaOf(value: string): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `string` |  |

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