SVG/Attribut/k1, k2, k3, k4
Aus SELFHTML-Wiki
Die k1, k2, k3, k4-Attribute sind Transfer Funktionsattribute, die bei operator="arithmetic" 4 Werte festlegen.
- Erlaubte Werte
Zahl
- Standardwert
0
- anwendbar auf
- Präsentationsattribut
nein
- mit CSS animierbar
nein
Beispiel
<filter id="overFlood"
filterUnits="objectBoundingBox"
x="-5%" y="-5%" width="110%" height="110%">
<feFlood flood-color="#ffffff"
flood-opacity="1"
result="flood"/>
<feComposite in="SourceGraphic"
in2="BackgroundImage"
operator="over"
result="comp"/>
<feMerge>
<feMergeNode in="flood"/>
<feMergeNode in="comp"/>
</feMerge>
</filter>
<filter id="inFlood" filterUnits="objectBoundingBox"
x="-5%" y="-5%" width="110%" height="110%">
<feFlood flood-color="#ffffff"
flood-opacity="1" result="flood"/>
<feComposite in="SourceGraphic"
in2="BackgroundImage"
operator="in"
result="comp"/>
<feMerge>
<feMergeNode in="flood"/>
<feMergeNode in="comp"/>
</feMerge>
</filter>
<filter id="outFlood" filterUnits="objectBoundingBox"
x="-5%" y="-5%" width="110%" height="110%">
<feFlood flood-color="#ffffff"
flood-opacity="1" result="flood"/>
<feComposite in="SourceGraphic"
in2="BackgroundImage" operator="out" result="comp"/>
<feMerge>
<feMergeNode in="flood"/>
<feMergeNode in="comp"/>
</feMerge>
</filter>
<filter id="atopFlood" filterUnits="objectBoundingBox"
x="-5%" y="-5%" width="110%" height="110%">
<feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
<feComposite in="SourceGraphic"
in2="BackgroundImage" operator="atop" result="comp"/>
<feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
</filter>
<filter id="xorFlood" filterUnits="objectBoundingBox"
x="-5%" y="-5%" width="110%" height="110%">
<feFlood flood-color="#ffffff"
flood-opacity="1" result="flood"/>
<feComposite in="SourceGraphic"
in2="BackgroundImage" operator="xor" result="comp"/>
<feMerge>
<feMergeNode in="flood"/>
<feMergeNode in="comp"/>
</feMerge>
</filter>
<filter id="arithmeticFlood" filterUnits="objectBoundingBox"
x="-5%" y="-5%" width="110%" height="110%">
<feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
<feComposite in="SourceGraphic" in2="BackgroundImage" result="comp"
operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/>
<feMerge> <feMergeNode in="flood"/> <feMergeNode in="comp"/> </feMerge>
</filter>
Siehe auch
Weblinks
- Spezifikation (W3C): feComposite k1 Attribute
Liste der SVG-Attribute
- Kernattribute
- Präsentationsattribute
- Animations-Attribute
- Filter-Attribute
- amplitude
- azimuth
- baseFrequency
- bias
- color-interpolation-filters
- diffuseConstant
- divisor
- edgeMode
- elevation
- exponent
- filterUnits
- in
- in2
- intercept
- k1, k2, k3, k4
- kernelMatrix
- limitingConeAngle
- mode
- numOctaves
- offset
- operator
- order
- pointsAtX
- pointsAtY
- pointsAtZ
- preserveAlpha
- primitiveUnits
- result
- scale
- seed
- slope
- specularConstant
- specularExponent
- stdDeviation
- stitchTiles
- surfaceScale
- tableValues
- targetX
- targetY
- type (feTurbulence)
- type (Transfer Funktionsattribut)
- values
- xChannelSelector
- yChannelSelector
- Layout-Attribute
- viewBox-Attribute
- XLink-Attribute
- weitere XML-Attribute