Frag

Example: My Gosh, It’s Full of Stars!

▶ View interactive demo

Open in turtleSpaces IDERun starscape to create a galaxy of randomly-shaped and colored stars.

Read More »

One-a-Day: FRAG

The FRAG primitive creates a filled shape out of the current turtle position and her last two positions. For example:

FD 100 RT 90 FD 100 FRAG

will create a triangle.

While turtleSpaces has a variety of shape primitives, sometimes you need to create an arbitrary shape, and FRAG aids you in this.

Take this example, which draws a star:

Read More »