feTurbulence

The feTurbulence SVG element specifies an image using the Perlin turbulence function.

It allows the synthesis of artificial textures like clouds or marble. The resulting image will fill the entire filter primitive subregion for this filter primitive.

Syntax

Attributes

baseFrequency

Specifies the base frequency (frequencies) parameter(s) for the noise function.

If two numbers are provided, the first number represents a base frequency in the x direction and the second value represents a base frequency in the y direction. If one number is provided, then that value is used for both x and y. Negative values are unsupported.

Value
<number-optional-number>
Default
0

numOctaves

Specifies the number of octaves for the noise function.

Negative values are unsupported.

Value
<integer>
Default
1

seed

Specifies the starting number for the pseudo random number generator.

Value
<number>
Default
0

stitchTiles

Specifies the transition at the border of tiles.

Value
stitch | noStitch
Default
noStitch

type

Specifies whether the filter primitive should perform a noise or turbulence function.

Value
fractalNoise | turbulence
Default
turbulence

Examples

baseFrequency

<number-optional-number>

numOctaves

<integer>

seed

<number>

stitchTiles

noStitch

stitch

type

fractalNoise

turbulence

Internal

feBlend

feColorMatrix

feComponentTransfer

feComposite

feConvolveMatrix

feDiffuseLighting

feDisplacementMap

feDistantLight

feDropShadow

feFlood

feFuncA

feFuncB

feFuncG

feFuncR

feGaussianBlur

feImage

feMerge

feMergeMode

feMorphology

feOffset

fePointLight

feSpecularLighting

feSpotLight

feTile

filter

External

World Wide Web Consortium (W3C)

Home Menu