SKShader.CreatePerlinNoiseTurbulence Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreatePerlinNoiseTurbulence(Single, Single, Int32, Single) |
Creates a new shader that draws Perlin turbulence noise. |
| CreatePerlinNoiseTurbulence(Single, Single, Int32, Single, SKPointI) |
Creates a new shader that draws Perlin turbulence noise. |
| CreatePerlinNoiseTurbulence(Single, Single, Int32, Single, SKSizeI) |
Creates a new shader that produces Perlin noise turbulence with a specified tile size. |
CreatePerlinNoiseTurbulence(Single, Single, Int32, Single)
Creates a new shader that draws Perlin turbulence noise.
public static SkiaSharp.SKShader CreatePerlinNoiseTurbulence(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed);
Parameters
- baseFrequencyX
- Single
The frequency in the x-direction in the range of 0..1.
- baseFrequencyY
- Single
The frequency in the y-direction in the range of 0..1.
- numOctaves
- Int32
The number of octaves, usually fairly small.
- seed
- Single
The randomization seed.
Returns
Returns a new SKShader, or an empty shader on error. Never returns null.
Applies to
CreatePerlinNoiseTurbulence(Single, Single, Int32, Single, SKPointI)
Creates a new shader that draws Perlin turbulence noise.
public static SkiaSharp.SKShader CreatePerlinNoiseTurbulence(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, SkiaSharp.SKPointI tileSize);
Parameters
- baseFrequencyX
- Single
The frequency in the x-direction in the range of 0..1.
- baseFrequencyY
- Single
The frequency in the y-direction in the range of 0..1.
- numOctaves
- Int32
The number of octaves, usually fairly small.
- seed
- Single
The randomization seed.
- tileSize
- SKPointI
The tile size used to modify the frequencies so that the noise will be tileable for the given size.
Returns
Returns a new SKShader, or an empty shader on error. Never returns null.
Applies to
CreatePerlinNoiseTurbulence(Single, Single, Int32, Single, SKSizeI)
Creates a new shader that produces Perlin noise turbulence with a specified tile size.
public static SkiaSharp.SKShader CreatePerlinNoiseTurbulence(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, SkiaSharp.SKSizeI tileSize);
Parameters
- baseFrequencyX
- Single
The base frequency in the X direction.
- baseFrequencyY
- Single
The base frequency in the Y direction.
- numOctaves
- Int32
The number of octaves, usually a value between 1 and 10.
- seed
- Single
The seed value used to initialize the random number generator.
- tileSize
- SKSizeI
The tile size used to modify the frequencies for tiling.
Returns
Returns a new SKShader.