A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/svg/elements/feFuncR below:

feFuncR · WebPlatform Docs

feFuncR Overview Table
DOM Interface
SVGElement
Notes Remarks

This topic describes the feFuncR, feFuncG, feFuncB, and feFuncA elements. These four elements are typically children of feComponentTransferelement and specify the transfer functions for the four channels, as follows:

The following rules apply to the processing of the feComponentTransferelement element:

In addition to core attributes (id, xml:base, xml:lang, and xml:space), the following seven attributes are applicable to the feFuncR, feFuncG, feFuncB, and feFuncA elements:

The type attribute can be one of five values: identity, table, discrete, linear, or gamma (see below). These five values indicate the type of component transfer function. The value of type determines the applicability of the other attributes (as discussed below).

In the following, C is the initial component (such as feFuncR), C’ is the re-mapped component; both in the closed interval [0, 1]:

C’ = C

For a value C < 1, find k such that k/n <= C < (k+1)/n

The result C’ is given by C’ = vk + (C - k/n)*n * (vk+1 - vk)

If C = 1 then C’ = Vn

For a value C < 1 find k such that k/n <= C < (k+1)/n

The result C’ is given by C’ = vk

If C = 1 then C’ = vn-1

C’ = slope * C + intercept (see below for slope and intercept)

C’ = amplitude * pow(C, exponent) + offset (see below for amplitude, exponent, and offset)

When type="table", tableValue is a list of numbers v0, v1, …, vn separated by white space and/or a comma, which define the lookup table. An empty list results in an identity transfer function. If the attribute is not specified, then the effect is as if an empty list were provided.

When type="linear", slope indicates the slope of the linear function. If the attribute is not specified, then the effect is as if a value of 1 were specified.

When type="linear", intercept indicates the intercept of the linear function. If the attribute is not specified, then the effect is as if a value of 0 were specified.

When type="gamma", amplitude indicates the amplitude of the gamma function. If the attribute is not specified, then the effect is as if a value of 1 were specified.

When type="gamma", exponent indicates the exponent of the gamma function. If the attribute is not specified, then the effect is as if a value of 1 were specified.

When type="gamma", offset indicates the offset of the gamma function. If the attribute is not specified, then the effect is as if a value of 0 were specified

Syntax Standards information Members Properties

The SVGFEFuncRElement object has these properties.

See also Related articles Filters Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4