I think the problem here is not applying the texture to multiple shapes, but rather drawing multiple shapes on top of each other. You can't use rotate() within a beginShape()-endShape(). You should move it outside/before these calls. In addition you might want to use radians() on the number before using it in rotate(). In addition you can move all the calls that apply to all shapes outside the for loop, which are lines 27, 28, 29 and 30, some of which may be even moved to setup().
↧