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

Method makeFractalNoise

shared/java/Shader.java:306–310  ·  view source on GitHub ↗

Creates a shader that generates fractal 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 together; sh

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

Source from the content-addressed store, hash-verified

304 * @return Shader that generates fractal Perlin noise
305 */
306 @NotNull
307 public static Shader makeFractalNoise(float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed, @Nullable IPoint tileSize) {
308 Stats.onNativeCall();
309 return new Shader(_nMakeFractalNoise(baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize == null ? 0 : tileSize.getX(), tileSize == null ? 0 : tileSize.getY()));
310 }
311
312 /**
313 * <p>Creates a shader that generates fractal Perlin noise without tiling.</p>

Callers 1

drawNoiseMethod · 0.95

Calls 4

onNativeCallMethod · 0.95
_nMakeFractalNoiseMethod · 0.95
getXMethod · 0.80
getYMethod · 0.80

Tested by

no test coverage detected