SceneTurbulencePrimitive Class
A primitive that fills its subregion with Perlin noise: feTurbulence of SVG.
public sealed class SceneTurbulencePrimitive : SceneFilterPrimitiveRemarks
The noise is the one of the reference code of "Filter Effects Module Level 1", from the seed.
- Inheritance
SceneFilterPrimitiveSceneTurbulencePrimitive
Constructors
| Name | Description |
|---|---|
| SceneTurbulencePrimitive(SceneTurbulenceType, double, double, int, int) | Initializes a new instance of the SceneTurbulencePrimitive class. |
SceneTurbulencePrimitive(SceneTurbulenceType, double, double, int, int)
SceneTurbulencePrimitive.csInitializes a new instance of the SceneTurbulencePrimitive class.
public SceneTurbulencePrimitive(SceneTurbulenceType type, double baseFrequencyX, double baseFrequencyY, int octaves, int seed)Parameters
typeSceneTurbulenceType- The noise.
baseFrequencyXdouble- The frequency of the first octave along x, in cycles per unit:
baseFrequency. baseFrequencyYdouble- The frequency of the first octave along y.
octavesint- The number of octaves:
numOctaves. seedint- The seed of the random numbers:
seed.
Exceptions
ArgumentOutOfRangeExceptiontypeis not defined, a frequency is negative, oroctavesis negative.ArgumentException- A frequency is not a finite number.
Properties
| Name | Description |
|---|---|
| BaseFrequencyX | Gets the frequency of the first octave along x. |
| BaseFrequencyY | Gets the frequency of the first octave along y. |
| Octaves | Gets the number of octaves. |
| Seed | Gets the seed of the random numbers. |
| StitchTiles | Gets a value indicating whether the noise repeats with the size of the subregion: stitchTiles="stitch". |
| Type | Gets the noise. |