Algosim documentation: noise

noise

Returns a pixmap with pixels randomly set to a given colour.

Syntax

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")

Image 1