Scale
From DocBase
[edit]
SCALE
Sets the scale for drawing commands.
| Arg | Type | Description | Values |
|---|---|---|---|
| scale-x | [decimal!] | ||
| scale-y | [decimal!] |
Notes and Examples
The values given are multipliers; use values greater than one to increase the scale; use values less than one to decrease it. Negative values
fill-pen blue box 100x100 200x200
scale 2 .5 fill-pen red box 100x100 200x200
reset-matrix ; Reset the scale.
scale .5 1.5 fill-pen yellow box 100x100 200x200
Another way to reset the scale is to use the PUSH command:
fill-pen blue box 100x100 200x200
push [scale 2 .5 fill-pen red box 100x100 200x200]
scale .5 1.5 fill-pen yellow box 100x100 200x200
See also: http://www.w3.org/TR/SVG/coords.html#EstablishingANewUserSpace


