Skip to content

1681-engine / postfx / CrtOptions

Interface: CrtOptions ​

Defined in: src/postfx/CrtFilter.ts:3

Properties ​

cornerShade? ​

ts
optional cornerShade?: number;

Defined in: src/postfx/CrtFilter.ts:11

0–1, how much darker the bulged corners are (default 0.25).


curvature? ​

ts
optional curvature?: number;

Defined in: src/postfx/CrtFilter.ts:9

How much the glass bulges, 0 flat (default 0.08).


lineHeight? ​

ts
optional lineHeight?: number;

Defined in: src/postfx/CrtFilter.ts:7

Screen pixels per scanline (default 3).


scanlines? ​

ts
optional scanlines?: number;

Defined in: src/postfx/CrtFilter.ts:5

0–1, how dark the gaps between scanlines are (default 0.3).

Released under the MIT License.