SVG/Attribut/offset
Aus SELFHTML-Wiki
Das offset-Attribut wird in den Komponententransfer-Funktionen verwendet, um für den type="gamma" die Y-Verschiebung der Gamma-Funktion festzulegen. Im stop-Element dient es dazu, die Position eines Color-Stops auf dem Gradientenvektor anzugeben.
- Erlaubte Werte
Zahl
- Standardwert
0
- anwendbar auf
- Präsentationsattribut
nein
- mit CSS animierbar
ja
Beispiel
<filter id="Gamma" filterUnits="objectBoundingBox"
x="0%" y="0%" width="100%" height="100%">
<feComponentTransfer>
<feFuncR type="gamma" amplitude="2" exponent="5"
offset="0"/>
<feFuncG type="gamma" amplitude="2" exponent="3"
offset="0"/>
<feFuncB type="gamma" amplitude="2" exponent="1"
offset="0"/>
</feComponentTransfer>
</filter>
Siehe auch
- SVG/Element/feComponentTransfer
- SVG/Farben/Verläufe#Farben Positionen und Transparenz eines Farbverlaufs
Weblinks
- Spezifikation (W3C): Offset 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 (feColorMatrix)
- type (feFunc*)
- type (feTurbulence)
- values
- xChannelSelector
- yChannelSelector
- Layout-Attribute
- viewBox-Attribute
- XLink-Attribute
- weitere XML-Attribute