nspots:number of colour spots (<=24)
colour:one colour per spot
