方位角
azimuth 屬性指定 XY 平面上光源的方向角度(順時針),以 x 軸為基準,單位為度。
你可以將此屬性與以下 SVG 元素一起使用
示例
html
<svg viewBox="0 0 440 200" xmlns="http://www.w3.org/2000/svg">
<filter id="distantLight1">
<feDiffuseLighting>
<feDistantLight azimuth="0" />
</feDiffuseLighting>
</filter>
<filter id="distantLight2">
<feDiffuseLighting>
<feDistantLight azimuth="240" />
</feDiffuseLighting>
</filter>
<circle cx="100" cy="100" r="80" filter="url(#distantLight1)" />
<circle cx="340" cy="100" r="80" filter="url(#distantLight2)" />
</svg>
用法說明
| 值 | <number> |
|---|---|
| 預設值 | 0 |
| 可動畫的 | 是 |
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # element-attrdef-fedistantlight-azimuth |
瀏覽器相容性
載入中…