Skip to content

Watermark

widgetsdisplay

Watermark - fills its area with faint repeating text

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

PropTypeRequiredDescription
textstringrequired
colorColoroptionalColor of the repeated text
angle0 | 45optionalDiagonal tilt angle in characters
#display#watermark