Appendix d, Parameter for color – Argox PA-20 Basic Programming Manual User Manual
Page 143

PT-Basic Programming Manual Ver. 1.00
142/143
Appendix D
Parameter for Color
In our BASIC SDK function, some have “color” parameter, this appendix will tell you
how to set color parameter.
1. Value:
The BASIC parameter value doesn‟t support Hex., so you have to set it in
DEC.
Our sample will use HEX and when you want to set color, please
conversion Dec from Hex value.
2. Example:
Color
Hex value
Dec value
Red
0x0000FF
255
Green
0x00FF00
65280
Blue
0xFF0000
16711680
White
0xFFFFFF
16777215
Black
0x000000
0
Red, Green, and Blue are the Primary color of light. If you want to set color
“Yellow”, for example, you have to use “Red” and “Green” color.
So, the yellow color hex value is “0x00FFFF”. You can set the color you
want by this rule.