Referenz:SVG/Attribute/type (Transfer Funktionsattribut)

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
Attribut type
Beschreibung Transfer Funktionsattribut, das den Typ der component Transferfunktion angibt
erlaubte Werte

identity, table, discrete, linear, gamma

default-Wert
animierbar ja
anwendbar auf feColorMatrix (Unterschied Tag Element Attribut)
Browsersupport
  • Chrome
  • Firefox
  • IE 10
  • Opera
  • Safari
Spezifikation W3c logo klein.gif Transfer Func Elements
Beispiel
<filter id="Matrix" filterUnits="objectBoundingBox"
        x="0%" y="0%" width="100%" height="100%">
  <feColorMatrix type="matrix" in="SourceGraphic"
       values=".33 .33 .33 0 0 
               .33 .33 .33 0 0 
               .33 .33 .33 0 0 
               .33 .33 .33 0 0"/>
</filter>
<filter id="Saturate40" filterUnits="objectBoundingBox"
        x="0%" y="0%" width="100%" height="100%">
  <feColorMatrix type="saturate" 
                 in="SourceGraphic" 
                 values="0.4"/>
</filter>
<filter id="HueRotate90" filterUnits="objectBoundingBox"
        x="0%" y="0%" width="100%" height="100%">
  <feColorMatrix type="hueRotate" 
                 in="SourceGraphic" 
                 values="90"/>
</filter>
<filter id="LuminanceToAlpha" 
        filterUnits="objectBoundingBox"
        x="0%" y="0%" width="100%" height="100%">
  <feColorMatrix type="luminanceToAlpha" 
                 in="SourceGraphic" 
                 result="a"/>
  <feComposite in="SourceGraphic" 
               in2="a"
               operator="in" />
</filter>
Beachten Sie
Tipp