Skia
2D Graphics Library
|
SkPerlinNoiseShader creates an image using the Perlin turbulence function. More...
#include <SkPerlinNoiseShader.h>
SkPerlinNoiseShader creates an image using the Perlin turbulence function.
It can produce tileable noise if asked to stitch tiles and provided a tile size. In order to fill a large area with repeating noise, set the stitchTiles flag to true, and render exactly a single tile of noise. Without this flag, the result will contain visible seams between tiles.
The algorithm used is described here : http://www.w3.org/TR/SVG/filters.html#feTurbulenceElement