DissolveToColorRegularly
Returns a pixmap with every nth pixel set to a given colour.
Syntax
-
DissolveToColorRegularly(pm, c[, n])-
pmis a pixmap -
cis a colour -
nis a non-zero integer
-
-
DissolveToColorRegularly(pm, f[, n])-
pmis a pixmap -
fis a colour function in two integer variables -
nis a non-zero integer
-
Description
If n > 0, then DissolveToColorRegularly(pm, c, n) returns pm with every nth pixel set to c (horizontally and vertically). If n < 0, then DissolveToColorRegularly(pm, c, n) returns pm with all but every nth pixel set to c. n defaults to 2.
The overload with a function instead of a colour will use f(x, y) as the colour at pixel (x, y).
Examples
DissolveToColorRegularly(ExampleData("rabbit"), (x, y) ↦ hsv(x + y, 1, 1), 2)
