-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
45 lines (34 loc) · 1.16 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: bias
slug: Web/SVG/Attribute/bias
page-type: svg-attribute
browser-compat: svg.elements.feConvolveMatrix.bias
---
{{SVGRef}}
The **`bias`** attribute shifts the range of the filter. After applying the {{SVGAttr("kernelMatrix")}} of the {{SVGElement("feConvolveMatrix")}} element to the input image to yield a number and applied the {{SVGAttr("divisor")}} attribute, the `bias` attribute is added to each component. This allows representation of values that would otherwise be clamped to 0 or 1.
You can use this attribute with the following SVG elements:
- {{SVGElement("feConvolveMatrix")}}
## Usage notes
<table class="properties">
<tbody>
<tr>
<th scope="row">Value</th>
<td>
<a href="/en-US/docs/Web/SVG/Content_type#number"><number></a>
</td>
</tr>
<tr>
<th scope="row">Default value</th>
<td><code>0</code></td>
</tr>
<tr>
<th scope="row">Animatable</th>
<td>Yes</td>
</tr>
</tbody>
</table>
One application of bias is when it is desirable to have 0.5 gray value be the zero response of the filter.
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}