forked from: DrawTriangles Book

