VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-surfacescale-attribute/

⇱ SVG surfaceScale Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG surfaceScale Attribute

Last Updated : 31 Mar, 2022

The surfaceScale attribute serve as the height of the surface. Elements that are using this attribute includes  <feSpecularLighting> and <feDiffuseLighting>

Syntax:

surfaceScale = "number"

Attribute values: The surfaceScale attribute accepts the values mentioned above and described below

  • number: This attribute value accepts  number such as a raw integer, a positive fraction, a negative fraction, zero, a fractional number without a leading zero, etc.

Note: Default attribute value is considered as 1.

Example 1: Below examples illustrate the use of surfaceScale attribute.

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment