Repetitive triangles


#1

I am wondering how you would go about creating repetitive triangles
similar to the concentric circles?

I have been trying to figure out how to do so with
my limited knowledge and cannot find a solution.


#2

Do you mean like a triangle inside of a larger triangle inside of a larger triangle, etc?

If so, you need to decrease Y on the top point while decreasing X and increasing Y on the left point and increasing X and Y on the right point.

Every time in the loop do this, top.Y -= 5, left.X -= 5, left.Y += 5, right.X += 5, right.Y += 5. Then you’ll have to move to the top point and draw line to the left, to the right, then close and stroke the path.