Build your obstacle course as normal, then paint every platform in bright, varied colours. The rainbow effect comes entirely from that colouring pass at the end.