targetX

  • Revision slug: Web/SVG/Attribute/targetX
  • Revision title: targetX
  • Revision id: 427339
  • Created:
  • Creator: Jeremie
  • Is current revision? Yes
  • Comment Moved From SVG/Attribute/targetX to Web/SVG/Attribute/targetX

Revision Content

« SVG Attribute reference home

The targetX attribute determines the positioning in X 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 < {{SVGAttr("order")}}X. By default, the convolution matrix is centered in X over each pixel of the input image (i.e., targetX = floor ( orderX / 2 )).

Usage context

Categories None
Value <number>
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

Example

Elements

The following elements can use the targetX attribute

  • {{ SVGElement("feConvolveMatrix") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>The <code>targetX</code> attribute determines the positioning in X 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 &lt;= <code>targetX</code> &lt; {{SVGAttr("order")}}<code>X</code>. By default, the convolution matrix is centered in X over each pixel of the input image (i.e., <code>targetX = floor ( orderX / 2 )</code>).</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#feConvolveMatrixElementTargetXAttribute" rel="external" title="http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElementTargetXAttribute">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>targetX</code> attribute</p>
<ul>
  <li>{{ SVGElement("feConvolveMatrix") }}</li>
</ul>
Revert to this revision