MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makeTurbulence

Method makeTurbulence

shared/java/Shader.java:336–340  ·  view source on GitHub ↗

Creates a shader that generates turbulence using Perlin noise. @param baseFrequencyX Base frequency in the X direction; usually in the range [0..1] @param baseFrequencyY Base frequency in the Y direction; usually in the range [0..1] @param numOctaves Number of octaves of noise to add tog

(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, @Nullable IPoint tileSize)

Source from the content-addressed store, hash-verified

334 * @return Shader that generates turbulent Perlin noise
335 */
336 @NotNull
337 public static Shader makeTurbulence(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, @Nullable IPoint tileSize) {
338 Stats.onNativeCall();
339 return new Shader(_nMakeTurbulence(baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize == null ? 0 : tileSize.getX(), tileSize == null ? 0 : tileSize.getY()));
340 }
341
342 /**
343 * <p>Creates a shader that generates turbulence using Perlin noise without tiling.</p>

Callers 2

drawImageFiltersMethod · 0.95
drawNoiseMethod · 0.95

Calls 4

onNativeCallMethod · 0.95
_nMakeTurbulenceMethod · 0.95
getXMethod · 0.80
getYMethod · 0.80

Tested by

no test coverage detected