Making Moiré Patterns
Problem
Moiré patterns are a type of interference pattern made when lines overlap.
Here are some examples of Moiré patterns:
These patterns were created using LOGO.
Can you work out which LOGO commands give rise to each pattern?
- cs setpc 16 repeat 360 [fd 100 bk 100 rt 7 fd 25 bk 25 rt 5 fd 15 bk 15 rt 2] ht
- cs setpc 2 repeat 90 [fd 100 bk 100 rt 3 fd 100 bk 100 rt 1] ht
- cs setpc 13 repeat 360 [fd 100 bk 100 rt 7 fd 25 bk 25 rt 7 fd 10 bk 10 rt 7] ht
- cs setpc 1 repeat 360[fd 200 rt 1 bk 200 rt 1] ht
If you are unfamiliar with LOGO, click below to see a glossary of the terms used above.
setpc: set pen colour
fd: move turtle forward a specified distance
bk: move turtle back a specified distance
rt: right turn through an angle in degrees
lt: left turn through an angle in degrees
st: show turtle
ht: hide turtle
Try making some Moiré patterns of your own. Make changes to your LOGO code and see the effects you can create.
What do you notice?
Send us your examples of Moiré patterns, together with the LOGO code you used to generate them.
You can download free software for LOGO: FMSLogo for Windows, ACSLogo for Mac (user guide and tutorials).
Getting Started
Then try changing each of the variables in turn. What do you notice?
Student Solutions
We only had one person submit a Moiré pattern for us! Thank you to Daniel from Wilson's School who sent in:
cs setpc 13 repeat 360 [fd 79 bk 56 rt 8 fd 123 bk 125 rt 34 fd 10 bk 10 rt 34] ht
Do try out some more Moiré patterns on the nrich TWILGO site and then send them to us.
Teachers' Resources
Why do this problem?
Read this article for a discussion on the importance and the benefits of programming in the classroom.This problem uses the free-to-download LOGO software to introduce students to some programming through the engaging context of Moiré patterns. The patterns produced are pleasing to the eye, and students can be encouraged to be playful with their LOGO constructions in order to produce attractive patterns, while considering the geometry of different constructions.
Possible approach
Students will need to work on computers, with free software for LOGO: FMSLogo for Windows or ACSLogo for Mac.
If students have never used LOGO before, you may wish to use some of the First Forward Into LOGO resources before exploring Moiré patterns.
Hand out this worksheet.
"For each pattern, try to work out which set of commands created it, and then try it out on the computer to see if you were right."
Bring the class together to discuss how they matched the patterns with the commands. Then challenge them to create some patterns of their own.
Finally, invite students to share the patterns they are most pleased with, and to describe how they created them.
Key questions
What effects can you get by changing the length of the lines?
What effects can you get by changing the angle between the lines?
What effects can you get by changing the number of radial lines?
Possible extension
Once students know how to program these simple Moiré patterns, use the links at the top of the problem page to explore further.