<feSpotLight>
Baseline
åºãå©ç¨å¯è½
ãã®æ©è½ã¯åºãå®è£ ããã¦ãããå¤ãã®ãã¼ã¸ã§ã³ã®ç«¯æ«ããã©ã¦ã¶ã¼ã§åä½ãã¾ãã2015å¹´7æä»¥éããã¹ã¦ã®ãã©ã¦ã¶ã¼ã§å©ç¨å¯è½ã§ãã
<feSpotLight> 㯠SVG ã®è¦ç´ ã§ãã¹ãããã©ã¤ã广ã使ããããã«ä½¿ç¨ã§ããå
æºãå®ç¾©ãã¾ãã
ããã¯ãç
§æãã£ã«ã¿ã¼ããªããã£ãï¼<feDiffuseLighting> ã¾ã㯠<feSpecularLighting>ï¼å
ã§ä½¿ç¨ããã¾ãã
使ç¨ã³ã³ããã¹ã
屿§
DOM ã¤ã³ã¿ã¼ãã§ã¤ã¹
ãã®è¦ç´ 㯠SVGFESpotLightElement ã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®è£
ãã¦ãã¾ãã
ä¾
>HTML
html
<svg
width="200"
height="200"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="spotlight">
<feSpecularLighting
result="spotlight"
specularConstant="1.5"
specularExponent="4"
lighting-color="white">
<feSpotLight x="600" y="600" z="400" limitingConeAngle="5.5" />
</feSpecularLighting>
<feComposite
in="SourceGraphic"
in2="spotlight"
operator="out"
k1="0"
k2="1"
k3="1"
k4="0" />
</filter>
</defs>
<image
href="mdn_logo_only_color.png"
x="10%"
y="10%"
width="80%"
height="80%"
filter="url(#spotlight)" />
</svg>
çµæ
仿§æ¸
| 仿§æ¸ |
|---|
| Filter Effects Module Level 1 > # feSpotLightElement > |