updated floorscript

added function colourByArray
parameter is the array of floats which are translated to colours