scale
Returns a pixmap scaled by a given factor.
Syntax
-
scale(pm, f)
-
pm
is a pixmap -
f
is a positive real number
-
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)