Text

text: a line of type as a field the body reads by name. White where the glyphs are, with anti-aliased coverage in alpha. Feed it to other inputs (blur(label) for a glow) or use it as a mask, a reveal target, or a spawn shape for particles.

import {samplePoints, text} from 'shaders/std'

Types

TypeWhat it is
TextInputinterface TextInput extends InputNode { readonly kind: 'text' readonly text: string | PropRef /** The typography controls this text reads from its component (added to it as props). / readonly typography: readonly TypographyField /* The typography's starting values (the added props' defaults, and the fallback for the rest). / readonly defaults: Required<Pick<TypographyDefaults, 'fontFamily' | 'fontWeight' | 'fontSize' | 'letterSpacing' | 'textAlign' | 'center'>> /* Build the distance field (.distance, .nearest). / readonly distance: boolean /* Letter slots for .letters(i) (0 = off). */ readonly letters: number }

Words