Optional
options: BlurFilterOptionsThe options of the blur filter.
Optional
strength: numberOptional
quality: numberOptional
resolution: numberOptional
kernelSize: numberAdvanced
blurThe horizontal blur filter
Advanced
blurThe vertical blur filter
Static
defaultDefault blur filter options
// Set default options for all BlurFilters
BlurFilter.defaultOptions = {
strength: 10, // Default blur strength
quality: 2, // Default blur quality
kernelSize: 7 // Default kernel size
};
// Create a filter with these defaults
const filter = new BlurFilter(); // Uses default options
Sets the number of passes for blur. More passes means higher quality blurring. Controls the precision and smoothness of the blur effect at the cost of performance.
Sets the strength of both the blurX and blurY properties simultaneously. Controls the overall intensity of the Gaussian blur effect.
Advanced
Applies the filter.
The manager.
The input target.
The output target.
How to clear
The BlurFilter applies a Gaussian blur to an object. The strength of the blur can be set for the x-axis and y-axis separately.
Example
Remarks
See