Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

alphaOf function

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

View as Markdown
import { alphaOf } from '@dioramajs/text/ribbon'
function alphaOf(value: string): number

Parameters

NameTypeDescription
valuestring

Defined in packages/text/src/ribbon.ts.