targetX
The targetX attribute determines the positioning in horizontal direction of the convolution matrix relative to a given target pixel in the input image. The leftmost column of the matrix is column number zero. The value must be such that: 0 <= targetX < x of order.
The **`targetX`** attribute determines the positioning in horizontal direction of the convolution matrix relative to a given target pixel in the input image. The leftmost column of the matrix is column number zero. The value must be such that: `0` <= `targetX` < `x` of order.
You can use this attribute with the following SVG elements:
- feConvolveMatrix
## Usage notes
<table class="properties">
<tbody>
<tr>
<th scope="row">Value</th>
<td>integer</td>
</tr>
<tr>
<th scope="row">Default value</th>
<td><code>floor(<code>x</code> of order / 2)</code></td>
</tr>
<tr>
<th scope="row">Animatable</th>
<td>Yes</td>
</tr>
</tbody>
</table>
- `<integer>`
- : This value indicates the positioning in horizontal direction of the convolution matrix relative to a given target pixel in the input image.
## Specifications
## Browser compatibility
## See also
- targetY
Cite this
"targetX". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/targetX JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy