SceneTurbulencePrimitive Class

A primitive that fills its subregion with Perlin noise: feTurbulence of SVG.

public sealed class SceneTurbulencePrimitive : SceneFilterPrimitive

Remarks

The noise is the one of the reference code of "Filter Effects Module Level 1", from the seed.

Inheritance
SceneFilterPrimitive SceneTurbulencePrimitive

Constructors

NameDescription
SceneTurbulencePrimitive(SceneTurbulenceType, double, double, int, int)Initializes a new instance of the SceneTurbulencePrimitive class.

SceneTurbulencePrimitive(SceneTurbulenceType, double, double, int, int)

SceneTurbulencePrimitive.cs

Initializes a new instance of the SceneTurbulencePrimitive class.

public SceneTurbulencePrimitive(SceneTurbulenceType type, double baseFrequencyX, double baseFrequencyY, int octaves, int seed)

Parameters

type SceneTurbulenceType
The noise.
baseFrequencyX double
The frequency of the first octave along x, in cycles per unit: baseFrequency.
baseFrequencyY double
The frequency of the first octave along y.
octaves int
The number of octaves: numOctaves.
seed int
The seed of the random numbers: seed.

Exceptions

ArgumentOutOfRangeException
type is not defined, a frequency is negative, or octaves is negative.
ArgumentException
A frequency is not a finite number.

Properties

NameDescription
BaseFrequencyXGets the frequency of the first octave along x.
BaseFrequencyYGets the frequency of the first octave along y.
OctavesGets the number of octaves.
SeedGets the seed of the random numbers.
StitchTilesGets a value indicating whether the noise repeats with the size of the subregion: stitchTiles="stitch".
TypeGets the noise.

Gets the frequency of the first octave along x.

public double BaseFrequencyX { get; }

Property value

double

Gets the frequency of the first octave along y.

public double BaseFrequencyY { get; }

Property value

double

Gets the number of octaves.

public int Octaves { get; }

Property value

int

Gets the seed of the random numbers.

public int Seed { get; }

Property value

int

Gets a value indicating whether the noise repeats with the size of the subregion: stitchTiles="stitch".

public bool StitchTiles { get; init; }

Property value

bool

Gets the noise.

public SceneTurbulenceType Type { get; }

Property value

SceneTurbulenceType