ripple
Returns a pixmap with a ripple effect.
Syntax
-
ripple(pm, A, λ[, d])
-
pm
is a pixmap -
A
is an integer -
λ
is an integer -
d
is 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")