Flutter Engine
The Flutter Engine
|
Classes | |
class | MatrixRec |
sk_sp< SkShader > SkShaders::Blend | ( | sk_sp< SkBlender > | blender, |
sk_sp< SkShader > | dst, | ||
sk_sp< SkShader > | src | ||
) |
Definition at line 117 of file SkBlendShader.cpp.
sk_sp< SkShader > SkShaders::Blend | ( | SkBlendMode | mode, |
sk_sp< SkShader > | dst, | ||
sk_sp< SkShader > | src | ||
) |
Definition at line 100 of file SkBlendShader.cpp.
sk_sp< SkShader > SkShaders::Color | ( | const SkColor4f & | color, |
sk_sp< SkColorSpace > | space | ||
) |
Definition at line 105 of file SkColorShader.cpp.
Definition at line 103 of file SkColorShader.cpp.
Definition at line 59 of file SkCoordClampShader.cpp.
Definition at line 20 of file SkEmptyShader.cpp.
sk_sp< SkShader > SkShaders::Image | ( | sk_sp< SkImage > | image, |
SkTileMode | tmx, | ||
SkTileMode | tmy, | ||
const SkSamplingOptions & | options, | ||
const SkMatrix * | localMatrix = nullptr |
||
) |
Definition at line 800 of file SkImageShader.cpp.
sk_sp< SkShader > SkShaders::MakeFractalNoise | ( | SkScalar | baseFrequencyX, |
SkScalar | baseFrequencyY, | ||
int | numOctaves, | ||
SkScalar | seed, | ||
const SkISize * | tileSize = nullptr |
||
) |
This will construct Perlin noise of the given type (Fractal Noise or Turbulence).
Both base frequencies (X and Y) have a usual range of (0..1) and must be non-negative.
The number of octaves provided should be fairly small, with a limit of 255 enforced. Each octave doubles the frequency, so 10 octaves would produce noise from baseFrequency * 1, * 2, * 4, ..., * 512, which quickly yields insignificantly small periods and resembles regular unstructured noise rather than Perlin noise.
If tileSize isn't NULL or an empty size, the tileSize parameter will be used to modify the frequencies so that the noise will be tileable for the given tile size. If tileSize is NULL or an empty size, the frequencies will be used as is without modification.
Definition at line 135 of file SkPerlinNoiseShaderImpl.cpp.
sk_sp< SkShader > SkShaders::MakeTurbulence | ( | SkScalar | baseFrequencyX, |
SkScalar | baseFrequencyY, | ||
int | numOctaves, | ||
SkScalar | seed, | ||
const SkISize * | tileSize = nullptr |
||
) |
Definition at line 160 of file SkPerlinNoiseShaderImpl.cpp.
sk_sp< SkShader > SkShaders::RawImage | ( | sk_sp< SkImage > | image, |
SkTileMode | tmx, | ||
SkTileMode | tmy, | ||
const SkSamplingOptions & | options, | ||
const SkMatrix * | localMatrix = nullptr |
||
) |
Definition at line 807 of file SkImageShader.cpp.