Changes

Jump to navigation Jump to search
Line 62: Line 62:  
* end polygon: use the current turtle x,y position to specify the last vertex of a polygon
 
* end polygon: use the current turtle x,y position to specify the last vertex of a polygon
 
* end filled polygon: use the current turtle x,y position to specify the last vertex of a ''filled'' polygon
 
* end filled polygon: use the current turtle x,y position to specify the last vertex of a ''filled'' polygon
 +
: '''Note:''' The polygon must be 'normal', e.g., no crossed lines; no holes. Since Box2d does not support concave polygons, all polygons are converted to triangles (triangulation). (In Turtle Blocks, these triangles are shown by slight variations in color.)
 
* triangle: add a triangle object at the current turtle x,y position
 
* triangle: add a triangle object at the current turtle x,y position
 
* circle: add a circle object at the current turtle x,y position
 
* circle: add a circle object at the current turtle x,y position

Navigation menu