type (SVGComponentTransferFunctionElement)
a
b
c
cx
cy
d
dx
dy
e
f
fx
fy
id
in1
in2
k1
k2
k3
k4
r1
r2
x
x1
x2
y
y1
y2
z
TOC
Collapse the table of content
Expand the table of content

type property

The type of component transfer function. The function type determines the applicability of the other attributes.

This property is read-only.

Scalable Vector Graphics: Filter Effects, Section 15.11

 

Syntax

JavaScript
ptr = object.type

 

Property values

Type: SVGAnimatedEnumeration

One of the following values:

ValueCondition
identity

Same as input.

table

The function is defined by linear interpolation between values given in the attribute tableValues. The table has n+1 values (that is, v₀ to v) specifying the start and end values for n evenly sized interpolation regions. See the Remarks section.

discrete

The function is defined by the step function given in the attribute tableValues, which provides a list of n values (that is, v₀ to vₙ₋₁) in order to identify a step function consisting of n steps. Seethe Remarks section.

linear

The function is defined by the following linear equation: C' = slope * C + intercept

gamma

The function is defined by the following exponential function: C' = amplitude * pow(C, exponent) + offset

 

String format

identity | table | discrete | linear | gamma

Standards information

Remarks

For a type of table and a value C < 1, find k such that:

k/n <= C < (k+1)/n

The result C' is given by:

C' = vₖ + (C - k/n)*n * (vₖ₊₁ - vₖ)

If C = 1 then:

C' = v

For a type of discrete and a value C < 1 find k such that:

k/n <= C < (k+1)/n

The result C' is given by:

C' = vₖ

If C = 1 then:

C' = vₙ₋₁

See also

SVGComponentTransferFunctionElement
SVGFEFuncAElement
SVGFEFuncBElement
SVGFEFuncGElement
SVGFEFuncRElement

 

 

Show:
© 2016 Microsoft