Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Moire & scanimation maker

Draw moire fringes from two line patterns and make scanimations: an interleaved picture that moves when a striped mask slides over it.

How to use

  1. Moire fringes: set the spacing of two line patterns and the angle between them. The lab draws both on top of each other and gives the spacing of the big fringes.
  2. Scanimation: choose an animation, the number of frames and the slit width, then press Make the picture. The picture holds every frame cut into thin interleaved columns.
  3. Tick Show the striped mask and press Slide the mask: each position of the mask lets through one frame, so the picture moves.
  4. To make a paper version, save the picture and the mask, print the picture on paper and the mask on a clear sheet at the same size, then slide the sheet slowly across.

Keyboard and touch

TabMove between tabs, boxes and buttons
Enter or SpacePress the focused button or tick the box
TouchEvery control works by tapping

Tips

  • Two spacings of 8 and 8.5 px with no angle make fringes every 136 px: a 6 % difference magnified 17 times.
  • Moire is how engineers spot tiny shifts: the fringes move far more than the lines do.
  • Fewer frames give brighter scanimations; more frames give smoother movement but a darker picture.
  • When printing, keep both files at 100 % scale so the slits line up with the picture columns.

About this tool

Two line gratings with spacings p1 and p2 at an angle θ form fringes spaced p1 p2 / √(p1² + p2² − 2 p1 p2 cos θ). With parallel lines this is p1 p2 / |p1 − p2|; with equal spacings it is p / (2 sin(θ/2)). The fringes are the beat between the two patterns.

Scanimation (also called barrier-grid animation) interleaves n frames column by column: column x shows frame ⌊x / w⌋ mod n for a slit width w. The mask is black except for one open column in every n; moving it by w shows the next frame. The animations are drawn by the page itself, and the printable files are 900 × 600 pixels with 3-pixel columns per slit unit. Everything runs in your browser; nothing is uploaded.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product