ripple
Returns a pixmap with a ripple effect.
Syntax
-
ripple(pm, A, λ[, d])-
pmis a pixmap -
Ais an integer -
λis an integer -
dis one of"h"and"v"
-
Description
ripple(pm, A, λ, d) returns pm with a ripple horizontal (if d = "h") or vertical (if d = "v") ripple effect of amplitude A and wavelength λ (in pixels). If omitted, d defaults to "h". Row or columns of pixels are rotated, so no background-coloured areas are introduced at the edges.
Examples
ripple(ExampleData("Sally"), 10, 100, "h")

ripple(ExampleData("Sally"), 10, 100, "v")
