Skip to content

textmode.filters.js / ScanlinesOptions

Interface: ScanlinesOptions

Configuration options for the 'scanlines' filter.

A standalone scanline effect that adds horizontal lines to the image to simulate a CRT display or old monitor. More customizable than the scanlines in crtMattias.

Example

Properties

PropertyTypeDescription
countnumberNumber of scanlines across the image height. Higher values create finer, more dense lines. Minimum value: 10.0 Default 300.0
lineWidthnumberWidth of the lines relative to the spacing. - 0.0 = very thin lines (mostly transparent) - 0.5 = equal line and gap width - 1.0 = solid (no gaps) Default 0.5
intensitynumberOpacity/darkness of the scanlines. - 0.0 = invisible lines - 0.75 = clearly visible (default) - 1.0 = maximum darkness (solid black lines) Default 0.75
speednumberScrolling speed of the lines. - 0.0 = static lines - 1.0 = normal scrolling speed - Higher values = faster scrolling Default 1.0
timenumberAnimation time parameter. Increment this value each frame to animate the scrolling effect. Default 0.0