void Noise(unsigned randomSeed, unsigned low = 0, unsigned high = 255, unsigned channelMask = Channel_RGB, bool grayscale = false);
Noise fills an image with pixels representing random noise.
Parameters |
Description |
unsigned randomSeed |
The random seed number to use. If you keep all other parameters the same, you can generate different pseudo-random results by varying the random seed value. The noise function is a mapping function, not a true random-number generation function, so it creates the same results each time from the same random seed. |
unsigned low = 0 |
The lowest value to generate for each channel (0 to 255). |
unsigned high = 255 |
The highest value to generate for each channel (0 to 255). |
unsigned channelMask = Channel_RGB |
A number that can be a combination of any of the four color channel values |
bool grayscale = false |
A Boolean value. If the value is true, a grayscale image is created by setting all of the color channels to the same value. The alpha channel selection is not affected by setting this parameter to true. |