Download Chora User Manual
Transcript
TARA Systems Operators c = a.alpha; // c = 0xFF // change the alpha value a.alpha = 0x00; // a = #12345600 int32 rect.x1 The instant property x1 corresponds to the X1 (left) coordinate of the rectangle. The read access to this property returns this coordinate value and the write access changes it. The other coordinate values are not affected. var rect a = <10,20,30,40>; var int32 c; // Get the x1 coordinate c = a.x1; // c = 10 // change the x1 coordinate a.x1 = 0; // a = <0,20,30,40> int32 rect.y1 The instant property y1 corresponds to the Y1 (top) coordinate of the rectangle. The read access to this property returns this coordinate value and the write access changes it. The other coordinate values are not affected. var rect a = <10,20,30,40>; var int32 c; // Get the y1 coordinate c = a.y1; // c = 20 // change the y1 coordinate a.y1 = 0; // a = <10,0,30,40> int32 rect.x2 The instant property x2 corresponds to the X2 (right) coordinate of the rectangle. The read access to this property returns this coordinate value and the write access changes it. The other coordinate values are not affected. var rect a = <10,20,30,40>; var int32 c; // Get the x2 coordinate c = a.x2; // c = 30 // change the x2 coordinate a.x2 = 100; // a = <10,20,100,40> Embedded Wizard Chora User Manual Copyright TARA Systems GmbH www.embedded-wizard.de Page 150