specularConstant attribute | specularConstant property
Specifies the diffuse refection constant used to calculate the effects of diffusion and reflection from a light source.
This property is read-only.
![]() ![]() |
Syntax
| HTML |
|---|
<element specularConstant="ptr" ... > |
| JavaScript |
|---|
ptr = object.specularConstant |
Property values
Type: SVGAnimatedNumber
A non-negative number. If not specified, this defaults to 1.0.
Standards information
- Scalable Vector Graphics: Filter Effects, Section 15.25.25
Remarks
The specularConstant property specifies the ratio of reflection of the diffuse element of light from a light source. For more information, see Phong lighting model.
See also
Show:

