mozilla

# Revision 427331 of divisor

• Revision slug: Web/SVG/Attribute/divisor
• Revision title: divisor
• Revision id: 427331
• Created:
• Creator: Jeremie
• Is current revision? Yes
• Comment SVG/Attribute/divisor Web/SVG/Attribute/divisor

## Revision Content

After applying the {{SVGAttr("kernelMatrix")}} of the {{SVGElement("feConvolveMatrix")}} element to the input image to yield a number, that number is divided by the value given to the `divisor` attribute to yield the final destination color value. A divisor that is the sum of all the matrix values tends to have an evening effect on the overall color intensity of the result.

The default value is the sum of all values in kernelMatrix, with the exception that if the sum is zero, then the divisor is set to 1.

It is an error to specify a divisor of zero.

## Usage context

Categories None Yes SVG 1.1 (2nd Edition)

## Elements

The following elements can use the `divisor` attribute

• {{ SVGElement("feConvolveMatrix") }}

## Revision Source

```<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>After applying the {{SVGAttr("kernelMatrix")}} of the {{SVGElement("feConvolveMatrix")}} element to the input image to yield a number, that number is divided by the value given to the <code>divisor</code> attribute to yield the final destination color value. A divisor that is the sum of all the matrix values tends to have an evening effect on the overall color intensity of the result.</p>
<p>The default value is the sum of all values in kernelMatrix, with the exception that if the sum is zero, then the divisor is set to 1.</p>
<p>It is an error to specify a divisor of zero.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="row">Categories</th>
<td>None</td>
</tr>
<tr>
<th scope="row">Value</th>
<td><a href="/en/SVG/Content_type#Number" title="en/SVG/Content_type#Number">&lt;number&gt;</a></td>
</tr>
<tr>
<th scope="row">Animatable</th>
<td>Yes</td>
</tr>
<tr>
<th scope="row">Normative document</th>
<td><a href="http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElementDivisorAttribute" rel="external" title="http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElementDivisorAttribute">SVG 1.1 (2nd Edition)</a></td>
</tr>
</tbody>
</table>
<h2 id="Example">Example</h2>
<h2 id="Elements">Elements</h2>
<p>The following elements can use the <code>divisor</code> attribute</p>
<ul>
<li>{{ SVGElement("feConvolveMatrix") }}</li>
</ul>```