bias property
Shifts the range of the filter. This allows representation of values that would otherwise be clamped to 0 or 1.
This property is read-only.
![]() ![]() |
Syntax
| JavaScript |
|---|
number = object.bias |
Property values
Type: SVGAnimatedNumber
Shifts the range of the filter.
Standards information
- Scalable Vector Graphics: Filter Effects, Section 15.25.12
Remarks
After applying the kernelMatrix to the input image to yield a number and applying the divisor, the bias attribute is added to each component. One application of bias is when it is desirable to have 0.5 gray value be the zero response of the filter. The bias property shifts the range of the filter. This allows representation of values that would otherwise be clamped to 0 or 1. If bias is not specified, then the effect is as if a value of 0 were specified.
See also
Show:

