Skip to content

textmode.filters.js / FilmGrainOptions

Interface: FilmGrainOptions

Configuration options for the 'filmGrain' filter.

Adds an animated film grain/noise texture overlay to simulate vintage film stock or analog video. The multi-layered noise creates an organic, moving grain pattern that's less visible in darker areas, mimicking real film characteristics.

Example

Properties

PropertyTypeDescription
intensitynumberStrength of the grain effect. - 0.0 = no grain - 0.2 = subtle grain (default) - 0.5+ = heavy, noticeable grain Default 0.2
sizenumberSize of grain particles. - 1.0 = fine grain - 2.0 = medium grain (default) - 5.0+ = coarse, chunky grain Default 2.0
speednumberAnimation speed of the grain. - 0.0 = static grain (not recommended) - 1.0 = normal animation speed (default) - 2.0+ = fast, flickering grain Default 1.0
timenumberAnimation time parameter. Increment this value each frame to animate the grain effect. Default 0.0