Update ChainShape.java

Overloaded the createLoop() method to create a loop directly from an array of floats.
Merge pull request #999 from bacca87/master

Update ChainShape.java