noise
Returns a pixmap with pixels randomly set to a given colour.
Syntax
-
noise(pm[, p[, c]])-
pmis a pixmap -
pis a real number in [0, 1] -
cis a colour
-
Description
noise(pm, p, c) returns pm with each pixel set to colour c with probability p. If omitted, p defaults to .5 and c to white.
Examples
noise(ExampleData("harvestman"), .2, "green")
