Algosim documentation: scale

scale

Returns a pixmap scaled by a given factor.

Syntax

Description

scale(pm, f) returns pm scaled by a factor of k. If k > 1, the result is magnified; if k < 1, the result is shrunk.

Examples

scale(ComputePixmap(10, 10, x, y, RandomColor()), 20)

Image 1

See also