Skip to content

textmode.js / filters / BuiltInFilterParams

Interface: BuiltInFilterParams

Filter parameter types for built-in filters.

Most filters accept either a single number (for the primary parameter) or an object with named properties.

Properties

PropertyTypeDescription
grayscale| number | void | { amount?: number; }Converts to grayscale. Amount: 0-1, default 1
invertvoidInverts all colors (no params needed)
sepia| number | void | { amount?: number; }Applies sepia tone. Amount: 0-1, default 1
threshold| number | { threshold?: number; }Black/white threshold. Threshold: 0-1, default 0.5