FormatProperties
.
Transform
Transform the contents and border of the object with an affine transform matrix.
A transform can consist of any combination of individual transforms (Affine, Rotate,
Translate, Scale, Skew)
Example 1
Example
=
Block
{
// Rotate
Paragraph
(
new
(0,
new
(1, 0,
Colors
.
Blue
), 0, 0)) {
Separator
:
Tab;
RotateBox
(
each
[0, 10, 20, 45, 90, 120, 180]);
};
};
0 degrees
10 degrees
20 degrees
45 degrees
90 degrees
120 degrees
180 degrees
Example 2
Example2
=
Block
{
// Translate
Paragraph
(
new
(0,
new
(1, 0,
Colors
.
Blue
), 0, 0)) {
Separator
:
Tab;
TranslateBox
(0, 0);
TranslateBox
(10, 0);
TranslateBox
(0, 10);
TranslateBox
(10, 10);
};
};
0, 0
10, 0
0, 10
10, 10
Example 3
Example3
=
Block
{
// Skew
Paragraph
(
new
(0,
new
(1, 0,
Colors
.
Blue
), 0, 0)) {
Separator
:
Tab;
SkewBox
(0, 0);
SkewBox
(10, 0);
SkewBox
(0, 10);
SkewBox
(20, 20);
};
};
0, 0
10, 0
0, 10
20, 20
Example 4
Example4
=
Block
{
// Scale
Paragraph
(
new
(0,
new
(1, 0,
Colors
.
Blue
), 0, 0)) {
Separator
:
Tab;
FitBox
(50%, 50%);
FitBox
(150%, 50%);
FitBox
(50%, 150%);
FitBox
(
%
150,
%
150);
};
};
50%, 50%
150%, 50%
50%, 150%
150%, 150%
Example 5
Example5
=
Block
{
// Picture frame
Paragraph
(
new
(0,
new
(1, 0,
Colors
.
Blue
), 0, 0)) {
SkewRotate
(
-
10,
"Face"
);
SkewRotate
(10,
"Page"
);
};
};
Face
Page