equal
deleted
inserted
replaced
37 |
37 |
38 |
38 |
39 === Functions called by the game: Event Handlers === |
39 === Functions called by the game: Event Handlers === |
40 After successfully loading the Lua script the game will call the following functions on different occasions. To be used, they have to use the exact same name as defined below. |
40 After successfully loading the Lua script the game will call the following functions on different occasions. To be used, they have to use the exact same name as defined below. |
41 |
41 |
42 == Color == |
42 == Data types == |
|
43 === Color === |
43 Some functions take a `color` parameter. |
44 Some functions take a `color` parameter. |
44 |
45 |
45 Colors are stored in RGB and are always specified as a three-byte number, where each byte defines a component. The value 0 means no intensity and 255 is largest intensity of the component. |
46 Colors are stored in RGB and are always specified as a three-byte number, where each byte defines a component. The value 0 means no intensity and 255 is largest intensity of the component. |
46 The first byte is for the red component, the second byte for the green component and the third byte for the blue component. |
47 The first byte is for the red component, the second byte for the green component and the third byte for the blue component. |
47 |
48 |