mozilla

Revision 311549 of diffuseConstant

  • Revision slug: SVG/Attribute/diffuseConstant
  • Revision title: diffuseConstant
  • Revision id: 311549
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

« SVG Attribute reference home

The diffuseConstant attribute represant the kd value in the Phong lighting model. In SVG, this can be any non-negative number.
If the attribute is not specified, then the effect is as if a value of 1 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 diffuseConstant attribute

  • {{ SVGElement("feDiffuseLighting") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>The <code>diffuseConstant</code> attribute represant the kd value in the <a href="http://en.wikipedia.org/wiki/Phong_reflection_model" rel="external" title="http://en.wikipedia.org/wiki/Phong_reflection_model">Phong lighting model</a>. In SVG, this can be any non-negative number.<br />
  If the attribute is not specified, then the effect is as if a value of <strong><span class="attr-value">1</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 class="external" href="http://www.w3.org/TR/SVG11/filters.html#feDiffuseLightingDiffuseConstantAttribute" title="http://www.w3.org/TR/SVG11/filters.html#feDiffuseLightingDiffuseConstantAttribute">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>diffuseConstant</code> attribute</p>
<ul>
  <li>{{ SVGElement("feDiffuseLighting") }}</li>
</ul>
Revert to this revision