JavaScript Turtle Graphics

Examples

This page contains examples of the graphics generated with the turtle graphics program. This is a pictorial index, so clicking on an image will bring up the Turtle Graphic IDE loaded with the program to generate the image. The description of the example tells what inspired the example, where more information can be found, or where similar things can be found.

There are two ways to use this. One is to explore the possibilities. The other is to use these as inspirations to do something similar or to even copy the design. You can use the example code to start from or you can try to build the design from a blank slate. You will learn more building your designs from scratch.

At last count there are 85 examples.

Simple Figures

Simple Animation

An animation is an image that appears to be moving. Here objects or colors are changed to suggest movement.

Tessellations

A tessellation is a mathematicians way of laying geometrically shaped tiles to completely cover a surface. Square tessellations are the simplest followed closely by rectangles, triangles and hexagons. Regular pentagons, those with equal angles cannot tessellate, but there are 18 pentagon shapes that do tessellate. Some shapes tessellate, but have unusual patterns that do not repeat (called non-periodic). Wall paper relies on periodic patterns for printing with a cylinder shaped pattern. A non-periodic pattern could not be practical for wall paper.

Fractals

Polyhedra

Polyhedra are three-diminsional geometric objects. These include the five platonic solids: tetrahedron (4 triangle faces), cube (6 square faces), octahedron (8 triangle faces), dodecahedron (12 pentagon faces), and icosahedron (20 triangle faces). More information at https://en.wikipedia.org/wiki/Platonic_solids or at https://en.wikipedia.org/wiki/Polyhedron. There are various ways to display these in two dimensions including a model, that can be printed, cut out and glued, and a graph which shows all edges, vertices (points), and faces.

Artsy things

Steven Naifeh Inspired Figures

Sol LeWitt Inspired Designs

Sol LeWitt () was an American artist who founded both Minimalism and Conceptualism. (See article about Sol LeWitt

Games and Game Simulation