LuaAPI.wiki
changeset 478 7b95addbe9fc
parent 477 8c326a00ead3
child 491 9079444264ae
equal deleted inserted replaced
477:8c326a00ead3 478:7b95addbe9fc
    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