Skew - r3n/rebol-wiki GitHub Wiki
Sets a coordinate system skewed from the original by the given number of degrees.
| Arg | Type | Description | Values |
|---|---|---|---|
| val | [decimal!] |
Notes and Examples
Positive numbers skew to the right; negative numbers skew to the left.
Note: Currently the skewing transformation has effect on the line width in case fixed is not specified
line-width 1 fixed pen white fill-pen blue box 120x20 220x120 skew 15 fill-pen red box 120x125 220x225 reset-matrix skew -15 fill-pen yellow box 120x230 220x330
Another way to reset the skew is to use the PUSH command:
line-width 1 fixed pen white fill-pen blue box 120x20 220x120 push [ skew 15 fill-pen red box 120x125 220x225 ] skew -15 fill-pen yellow box 120x230 220x330
See also: http://www.w3.org/TR/SVG/coords.html#EstablishingANewUserSpace