Instance Method

minimum(_:)

Replaces values in the noise field by choosing the lesser of each value and a corresponding value in the specified noise object.

Declaration

func minimum(_ noise: GKNoise)

Parameters

noise

The noise object from which to compare and replace values.

Discussion

In a grayscale texture, higher values are brighter and lower values are darker.

Figure 1

Example result of the minimum operation

See Also

Applying Operations that Combine Noise

func add(GKNoise)

Replaces values in the noise field by adding them to values from the specified noise object.

func multiply(GKNoise)

Replaces values in the noise field by multiplying them with values from the specified noise object.

func raiseToPower(GKNoise)

Replaces values in the noise field by exponentiating them with values from the specified noise object.

func maximum(GKNoise)

Replaces values in the noise field by choosing the lesser of each value and a corresponding value in the specified noise object.