Description Available Attribute Values Component Mapping Algorithm Details Used by the Elements
Governs the model of the component transfer. (linear, table, discrete, identity, gamma)
The value can be any one of the following:
Specifies the identify component transform (i.e. no transform).
Specifies to use a linear interpolation of the given tableValues for the transfer function.
Specifies to use a step function produced by the tableValues for the transfer function.
Specifies to use a simple linear interpolation for the transfer function.
Specifies to use an exponential for the transfer function.
The compononet Mappin Algoritms are as follows:
identity:
To use specify
type='identity'
Provides no mapping. In terms of color components, for each color component C, we have:
C^{out}= C^{in}
linear
Specified by
type='linear'
slope=<NUMERIC> (default=1)
intercept=<NUMERIC> (default=0)
Maps the colors components using a linear function with the given slope and intercept. In terms of color components
C^{out}= m \times C^{in} + b
where m is given by the value of the slope attribute and b is given by the value of the intercept attribute.
gamma
Specified by
type='gamma'
exponent=<NUMERIC> (default=1)
amplitude=<NUMERIC> (default=1)
offset=<NUMERIC> (default=0)
Maps the colors components non-linearly using a exponential function In terms of color components
C_{out}= A \times C_{in}^B +C
where, A is given by the amplitute attribute, B by the exponent attribute and C but the offset attribute.
table
Specified by
type='table'
table=<NUMERIC VECTOR>
Maps the colors components using a continous piece-wise linear function defined by the valueTable attribute. In terms of color components and a valueTable attribute, v=c(v1,...,vn) for each color component C^{in}, we have:
C^{out}= v_k + m_k \times (v_{k+1}- v_k)
when C^{in}<1 and where k and m_k are given by
k=floor(C^{in} \times n)
and
m_k= C^{in} \times n mod(k)
In the case that C^{in}=1, then we set C^out=v_n
discrete
Specified by
type='table'
table=<NUMERIC VECTOR>
Maps the colors components using a step function defined by the valueTable attribute. In terms of color components and a valueTable attribute, v=c(v1,...,vn) for each color component C^{in}, we have:
C^{out}= v_k
when C^{in}<1 and where k is given by
k=floor(C^{in} \times n)
In the case that C^{in}=1, then we set C^out=v_n
feFuncA
, feFuncB
, feFuncG
, feFuncR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.