GrowingLines 3D

I tried to put my concept into 3D. Now Each time the construct runs into z or -z direction, it changes its color, so different layers have different colors.