A tutorial on creating an Action for a Photoshop Spirograph, using Paths and the Transform tools
Once you have your path stroked, make sure your stroke layer is selected. Now, open the Actions palette and click the New Action icon. Name it Spirograph and press Record. (Photoshop will now record your actions, so be careful to follow the next steps exactly).
Making sure your path layer is still selected, duplicate the layer (Cmd/Ctrl+J). Now, making sure the duplicated layer is highlighted, select the Move tool (V) then press Cmd/Ctrl+T. This will put a bounding box around the stroked path, allowing you adjust the rotation etc. First, we need to move the Pivot Point (the little round crosshair icon in the middle). Click and hold Shift on the Pivot Point and drag it just outside the bounding box.
Now rotate your stroke. Do this by clicking and dragging the top right square of the bounding box. When you’ve rotated your stroke so that it looks similar to the image below, press Enter.
Now we need to stop the Action before we do anything else. Go back to the Actions palette and press the Stop button (the square next to the red recording symbol). Select the action by clicking on its name, so it’s highlighted like so:
Now (with the duplicated layer still selected), press the Play Selection button in the Actions palette (the Play button). Press this button repeatedly until your Spirograph is full formed.