Algosim documentation: ripple

ripple

Returns a pixmap with a ripple effect.

Syntax

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

Image 1

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

Image 2