SVGBuilderExtensions.AddFeTurbulence

AddFeTurbulence<TBuilder>(this TBuilder, OneOf<double, (double, double)>, int?, double?, StitchTiles?, TurbulenceType?, OneOf<string, FilterInput>, string, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<Color, Paint, string>, OneOf<Color, Paint, string>, string, Action<SVGFETurbulenceElementBuilder>)

Adds an ‘feTurbulence’ element to the SVG builder, creating a turbulence effect, such as clouds or marble, using Perlin noise.

public static TBuilder AddFeTurbulence<TBuilder>(this TBuilder builder, 
    OneOf<double, (double, double)> baseFrequency = null, int? numOctaves = null, 
    double? seed = null, StitchTiles? stitchTiles = default, TurbulenceType? type = default, 
    OneOf<string, FilterInput> @in = null, string result = null, 
    OneOf<double, (double, LengthType)> x = null, OneOf<double, (double, LengthType)> y = null, 
    OneOf<double, (double, LengthType)> width = null, 
    OneOf<double, (double, LengthType)> height = null, OneOf<Color, Paint, string> fill = null, 
    OneOf<Color, Paint, string> stroke = null, string id = null, 
    Action<SVGFETurbulenceElementBuilder> extend = null)
    where TBuilder : ISVGElementBuilder, IFilterPrimitiveElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder, facilitating fluent API usage.
builderThe SVG builder instance to which the ‘feTurbulence’ element will be added.
baseFrequencyThe base frequency of the turbulence. Can be a double or a ValueTuple of two doubles. Optional parameter.
numOctavesThe number of octaves for the turbulence. Optional parameter.
seedThe seed number for the random number generator. Optional parameter.
stitchTilesIndicates whether the tiles are stitched together. Optional parameter.
typeThe type of turbulence (fractal noise or turbulence). Optional parameter.
inThe input image to which the turbulence effect will be applied. Can be a string or a FilterInput. Optional parameter.
resultThe result identifier for this filter primitive. Optional parameter.
xThe x-coordinate of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
yThe y-coordinate of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
widthThe width of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
heightThe height of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
fillThe fill color, paint or paint server id for the element. Optional parameter.
strokeThe stroke color, paint or paint server id for the element. Optional parameter.
idThe unique identifier for the filter primitive element. Optional parameter.
extendAn optional action to further configure the SVGFETurbulenceElementBuilder.

Return Value

The builder instance, allowing for method chaining.

See Also


AddFeTurbulence<TBuilder>(this TBuilder, Action<SVGFETurbulenceElementBuilder>)

Adds an ‘feTurbulence’ element configuration to the builder. This element creates an image using Perlin noise, useful for creating textures like clouds or marble.

public static TBuilder AddFeTurbulence<TBuilder>(this TBuilder builder, 
    Action<SVGFETurbulenceElementBuilder> configure)
    where TBuilder : ISVGElementBuilder, IFilterPrimitiveElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
configureThe configuration action for the ‘feTurbulence’ element.

Return Value

The builder instance for chaining.

See Also