# -*- coding: utf-8 -*- function triangleStrip(points, width): leftPoints = for each point, width cm. along angle_to(point-1) + angle_to(point+1) /2, //top edge points -width cm. along angle_to(point-1) + angle_to(point+1) /2 //bottom edge points triangles = points[n:n+3] where n = each int in range(size(points)-3) //add, for each vertex, the triangle to the right (http://wesnoth.org/jetrel/triangle-strip.png). drawTriangleStrip(triangles)