NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_CircleOut.nxc
This is an example of how to use the
CircleOut
,
Random
, and
Wait
functions.
task main()
{
for
(
int
i=0; i < 50; i++) {
int
x =
Random
(10)+50;
int
y =
Random
(10)+32;
int
r =
Random
(20);
CircleOut
(x, y, r,
DRAW_OPT_NORMAL
+
DRAW_OPT_LOGICAL_XOR
+
DRAW_OPT_FILL_SHAPE
);
Wait
(
MS_50
);
}
CircleOut
(20, 50, 20);
Wait
(
SEC_2
);
}
Generated by
1.8.2