mozilla

Revision 427251 of scale

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

Revision Content

« SVG Attribute reference home

The scale attribute define the displacement scale factor to be used on a {{SVGElement("feDisplacementMap")}} filter primitive. The amount is expressed in the coordinate system established by the {{SVGAttr("primitiveUnits")}} attribute on the {{SVGElement("filter")}} element.

When the value of this attribute is 0, this operation has no effect on the source image.

If the attribute is not specified, then the effect is as if a value of 0 were specified.

Usage context

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

Example

Elements

The following elements can use the scale attribute

  • {{ SVGElement("feDisplacementMap") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>The <code>scale</code> attribute define the displacement scale factor to be used on a {{SVGElement("feDisplacementMap")}} filter primitive. The amount is expressed in the coordinate system established by the {{SVGAttr("primitiveUnits")}} attribute on the {{SVGElement("filter")}} element.</p>
<p>When the value of this attribute is <strong><span class="attr-value">0</span></strong>, this operation has no effect on the source image.</p>
<p>If the attribute is not specified, then the effect is as if a value of <strong><span class="attr-value">0</span></strong> were specified.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="row">Categories</th>
      <td><em>None</em></td>
    </tr>
    <tr>
      <th scope="row">Value</th>
      <td><a href="/en/SVG/Content_type#Number" title="en/SVG/Content_type#Paint">&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#feDisplacementMapScaleAttribute" rel="external" title="http://www.w3.org/TR/SVG11/filters.html#feDisplacementMapScaleAttribute">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>scale</code> attribute</p>
<ul>
  <li>{{ SVGElement("feDisplacementMap") }}</li>
</ul>
Revert to this revision