Optionaloptions: BlurFilterOptionsThe options of the blur filter.
Optionalstrength: numberOptionalquality: numberOptionalresolution: numberOptionalkernelSize: numberAdvancedblurThe horizontal blur filter
AdvancedblurThe vertical blur filter
StaticdefaultDefault 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.
AdvancedApplies 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