Graphics Programs Reference
In-Depth Information
19. In the
XPresso Editor
, right-click in the empty space of the
XGroup
area; a shortcut
menu is displayed. From the shortcut menu, choose
New Node > XPresso > Logic >
Condition
, refer to Figure 13-15; the
Condition
node is added to the
XGroup
area.
20. In the Attribute Manager, choose the
Basic
button; the
Basic Properties
area is dis-
played. In this area, enter
Condition 2
in the
Name
text box; the
Condition
node is
renamed as
Condition 2
.
21. In the Attribute Manager, choose the
Node
button; the
Node Properties
area is dis-
played. In this area, select the
Color
option from the
Data Type
drop-down list, refer to
Figure 13-16.
22. In the Attribute Manager, choose the
Parameter
button; the
Parameter
area is dis-
played. In this area, click on the black color swatch next to the
Input [2]
option; the
Color Picker
dialog box is displayed. In the
Color Picker
dialog box, set the paramet-
ers as follows:
R:
255
G:
255
Next, choose the
OK
button; the black color in the color swatch is replaced by yellow color.
23. Create a third
Condition
node in the
XPresso Editor
and rename it as
Condition 3
in
the Attribute Manager, as done earlier.
24. Choose the
Parameter
button in the Attribute Manager; the
Parameter
area is dis-
played. In this area, click on the black color swatch next to the
Input [2]
option; the
Color Picker
dialog box is displayed. In the
Color Picker
dialog box, enter
255
in the
G
spinner. Next, choose the
OK
button; the black color swatch is replaced by green col-
or.
Next, you will add the
Red-Glass
,
Yellow-Glass
, and
Green-Glass
nodes to the
XPresso
Editor
window.
25. In the Object Manager, expand
Traffic-Lights.
Next, expand
Red-Light
,
Yellow-Light
,
and
Green-Light
and then select
Red-Glass
. Next, select both
Yellow-Glass
and
Green-
Glass
using the CTRL key. Now, press and hold the left mouse button and drag the curs-
or to the
XPresso Editor
; the
Red-Glass
,
Yellow-Glass
, and
Green-Glass
nodes are
added to the
XPresso Editor
, as shown in Figure 13-17.
Search WWH ::
Custom Search