# teaching machines

## Starring Matariki

During our last week in New Zealand, we attended the Matariki Festival at my sons’ school. Matariki is the Māori name for one of the stars that becomes visible in June, marking the start of a new growing season. The school celebrated with song and dance and an art show. For the art show, one of my sons had designed a star-shaped plot, but neither he nor his teacher could find it on display. He was sad, a severe case of art-ache.

Tonight after supper we recreated his artwork. First we wrote a small Twoville program to plot three axes with discrete tick marks:



span = 240
gap = 30
n = 3

with viewport
center = [0, 0]
size = [span * 2, span * 2]

to dot(p)
with circle()
opacity = 0
center = -p
stroke.size = 1
stroke.color = :black

for degrees to 180 by 180 / n
endpoint = [span, degrees + 90].toCartesian()
with line()
color = :black
size = 1
vertex().position = endpoint
vertex().position = -endpoint
for i in gap..span by gap
p = [i, degrees + 90].toCartesian()
dot(p)
dot(-p)

var twovilleDiv = jQuery('#twoville_hex');
twovilleDiv.closest('pre').replaceWith(twovilleDiv);
document.getElementById('twoville_form_hex').submit();

span = 240
gap = 30
n = 3

with viewport
center = [0, 0]
size = [span * 2, span * 2]

to dot(p)
with circle()
opacity = 0
center = -p
stroke.size = 1
stroke.color = :black

for degrees to 180 by 180 / n
endpoint = [span, degrees + 90].toCartesian()
with line()
color = :black
size = 1
vertex().position = endpoint
vertex().position = -endpoint
for i in gap..span by gap
p = [i, degrees + 90].toCartesian()
dot(p)
dot(-p)



We exported to SVG and plotted six of these patterns with an AxiDraw. Then we connected the nodes with lines and colored in the patchwork. Here are five of the completed stars:

Which one do you think is mine?

The sixth didn’t get finished because its owner was too busy staring at and not eating some green peppers.