Skip to content

cf_noise2

Category: noise
GitHub: cute_noise.h


Generates a random value given a 2D coordinate.

float cf_noise2(CF_Noise noise, float x, float y);
Parameters Description
noise The noise settings.
x Noise at this x-component.
y Noise at this y-component.

Return Value

Returns a random value at the specified point.

Remarks

You're probably looking for image generation functions such as cf_noise_pixels or cf_noise_fbm_pixels. This function is fairly low-level and intended for those who know what they're doing.

CF_Noise
cf_make_noise
cf_destroy_noise
cf_noise4
cf_noise3