Replaces values in the noise field by applying a randomized distortion effect.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
A value that determines how often (per unit area) the amount of distortion changes.
A value that determines the magnitude of distortion applied.
A value that determines the rate of change in distortion amounts over the noise field. Lower values result in smooth transitions between more-distorted and less-distorted regions; higher values result in rapid, rough transitions.
A value that governs the randomization of the turbulence effect. Passing the same seed value for multiple calls to this method results in the same general structure of turbulence (modulated by the other parameters).
Applying turbulence randomly distorts areas of the noise field, resulting in more natural-looking textures. This method is equivalent to using the
displace method with three noise fields generated by the
power parameters are closely related:
Low frequency and low power results in very minor changes to the original noise field.
Low frequency and high power adds elongated, twisting features to the original noise field.
High frequency and low power results in a rougher version of the original noise field.
High frequency and high power tend toward completely random noise.