Watermark
display
Watermark - fills its area with faint repeating text
Terminal
$termuijs render watermark
Installation
$ bunx termuijs add watermark
Copies the source into src/components/watermark/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Watermark } from '@termuijs/widgets'ts
new Watermark(text: string, style: Partial<Style> = {}, opts: WatermarkOptions = {})API Reference
Watermark
| Prop | Type | Required | Description |
|---|---|---|---|
text | string | required | — |
color | Color | optional | Color of the repeated text |
angle | 0 | 45 | optional | Diagonal tilt angle in characters |