NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_PolyOut.nxc
This is an example of how to use the
PolyOut
function.
LocationType
myPoints[] = {16,16, 8,40, 32,52, 20,36, 52,36, 56,52, 64,32, 44,20, 24,20};
task main()
{
PolyOut
(myPoints,
false
);
Wait
(
SEC_2
);
ClearScreen
();
for
(
int
i=0;i<10;i++) {
PolyOut
(myPoints,
DRAW_OPT_LOGICAL_XOR
|
DRAW_OPT_FILL_SHAPE
);
Wait
(
SEC_1
);
}
PolyOut
(myPoints,
true
|
DRAW_OPT_FILL_SHAPE
);
Wait
(
SEC_2
);
ClearScreen
();
for
(
int
i=0;i<100;i++) {
PolyOut
(myPoints,
DRAW_OPT_LOGICAL_XOR
|
DRAW_OPT_FILL_SHAPE
);
Wait
(
MS_100
);
}
Wait
(
SEC_1
);
}
Generated by
1.8.2