Using splines and applying several materials to instances

example