Spirograph Geometric Locus and Roulette Demonstration
2020-07-24 12:52
This GeoGebra example demonstrates the geometric principles and locus generation of a Spirograph. By constructing base circles, moving points, midpoints, and segments, it simulates the drawing mechanism of hypotrochoids or epitrochoids. Users can control the animation via buttons to observe the complex symmetric patterns created by a point rolling on a circle. This demonstration visually presents
In collections
Minority Pi GeoGebra Collection
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.593.0" app="classic" platform="d" id="e3e2b5e9-e3f7-41c1-8c46-f86ec33d5990" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="1366" height="728" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.1800878477306003" orientation="1" />
</panes>
<views>
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="true" location="3,1,1" size="372" window="100,100,600,400" />
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 51 | 551 550 11 , 20 22 21 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 , 538 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1,1,1" size="500" window="100,100,600,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="16" visible="false" inframe="false" stylebar="true" location="3,1" size="544" window="50,50,500,500" />
<view id="1" visible="true" inframe="false" stylebar="true" location="1" size="1088" window="100,100,600,400" />
<view id="2" visible="true" inframe="false" stylebar="true" location="3" size="246" window="100,100,600,400" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="4097" visible="false" inframe="false" stylebar="true" location="1" size="275" window="100,100,700,550" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
</views>
<toolbar show="true" items="0 39 73 62 | 1 501 67 , 5 19 , 72 75 76 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 14 68 | 30 29 54 32 31 33 | 25 17 26 60 52 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="true" cmd="true" top="true" />
<dockBar show="true" east="true" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="18"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="1088" height="497"/>
<coordSystem xZero="526.0383909049792" yZero="263.10569399647403" scale="24.269487773254173" yscale="24.269487773254166"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="0" g="51" b="0"/>
<axesColor r="255" g="255" b="255"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<algebraView>
<mode val="1"/>
</algebraView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="0" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2.0" max="2.0" step="1.0"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<expression label="A" exp="(0, 0)" type="point"/>
<element type="point" label="A">
<show object="false" label="true" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="0.0" y="0.0" z="1.0"/>
<pointSize val="2"/>
<pointStyle val="0"/>
</element>
<command name="Circle">
<input a0="A" a1="5"/>
<output a0="c"/>
</command>
<element type="conic" label="c">
<show object="false" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="1.0" y0="0.0" z0="1.0" x1="-0.0" y1="1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="-25.0" A3="0.0" A4="-0.0" A5="-0.0"/>
<eqnStyle style="specific"/>
</element>
<command name="Point">
<input a0="c"/>
<output a0="B"/>
</command>
<element type="point" label="B">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="-7" y="27"/>
<labelMode val="0"/>
<trace val="true"/>
<animation step="1" speed="g" type="1" playing="false"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="3.4250249763590213" y="-3.6426918496239677" z="1.0"/>
<pointSize val="2"/>
<pointStyle val="0"/>
</element>
<element type="numeric" label="r">
<value val="3.5"/>
<show object="true" label="true"/>
<objColor r="255" g="255" b="255" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="50" absoluteScreenLocation="true" width="200.0" x="17.0" y="34.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.01" speed="1" type="0" playing="false"/>
<ggbscript onUpdate=""/>
</element>
<command name="Circle">
<input a0="B" a1="r"/>
<output a0="d"/>
</command>
<element type="conic" label="d">
<show object="false" label="false" ev="4"/>
<objColor r="255" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="1.0" y0="0.0" z0="1.0" x1="-0.0" y1="1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="12.749999999999996" A3="0.0" A4="-3.4250249763590213" A5="3.6426918496239677"/>
<eqnStyle style="specific"/>
</element>
<command name="Point">
<input a0="d"/>
<output a0="C"/>
</command>
<element type="point" label="C">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="-1" y="3"/>
<labelMode val="0"/>
<trace val="true"/>
<animation step="1" speed="b" type="2" playing="false"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="3.6616157912984115" y="-0.1506974644213921" z="1.0"/>
<pointSize val="2"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="B" a1="C"/>
<output a0="f"/>
</command>
<element type="segment" label="f">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="-3.4919943852025757" y="0.23659081493939027" z="12.821995419899896"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Circle">
<input a0="A" a1="5 + r"/>
<output a0="e"/>
</command>
<element type="conic" label="e">
<show object="false" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="1.0" y0="0.0" z0="1.0" x1="-0.0" y1="1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="-72.25" A3="0.0" A4="-0.0" A5="-0.0"/>
<eqnStyle style="specific"/>
</element>
<expression label="a_1" exp="a_1(x, y) = (5 + r)^(2) ≤ x^(2) + y^(2) ≤ (6 + r)^(2)" />
<element type="functionNVar" label="a_1">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="0" alpha="1.0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<lineStyle thickness="1" type="0" typeHidden="1"/>
</element>
<element type="numeric" label="a">
<value val="0.64"/>
<show object="true" label="true"/>
<objColor r="255" g="255" b="255" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="200.0" x="17.0" y="74.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.01" speed="1" type="0" playing="false"/>
<ggbscript onUpdate=""/>
</element>
<command name="Point">
<input a0="f" a1="a"/>
<output a0="D"/>
</command>
<element type="point" label="D">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="4" y="13"/>
<labelMode val="0"/>
<trace val="true"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="3.576443097920231" y="-1.4078154430943193" z="1.0"/>
<pointSize val="2"/>
<pointStyle val="0"/>
</element>
<command name="Midpoint">
<input a0="D" a1="B"/>
<output a0="E"/>
</command>
<element type="point" label="E">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="5" y="12"/>
<labelMode val="0"/>
<trace val="true"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="3.500734037139626" y="-2.5252536463591433" z="1.0"/>
<pointSize val="2"/>
<pointStyle val="0"/>
</element>
<command name="Midpoint">
<input a0="C" a1="D"/>
<output a0="F"/>
</command>
<element type="point" label="F">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="7" y="19"/>
<labelMode val="0"/>
<trace val="true"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="3.619029444609321" y="-0.7792564537578557" z="1.0"/>
<pointSize val="2"/>
<pointStyle val="0"/>
</element>
<element type="numeric" label="b">
<value val="2.7"/>
<show object="true" label="true"/>
<objColor r="255" g="255" b="255" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="10" absoluteScreenLocation="true" width="200.0" x="18.0" y="119.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.01" speed="1" type="0" playing="false"/>
<ggbscript onUpdate=""/>
</element>
<element type="numeric" label="g">
<value val="0.75"/>
<show object="true" label="true"/>
<objColor r="255" g="255" b="255" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="10" absoluteScreenLocation="true" width="200.0" x="21.0" y="162.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.01" speed="1" type="0" playing="false"/>
<ggbscript onUpdate=""/>
</element>
<element type="button" label="button1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="61" y="266"/>
<labelMode val="0"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="StartAnimation(C)
StartAnimation(B)"/>
<ggbscript onUpdate=""/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<caption val="启动"/>
</element>
<element type="button" label="button2">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="63" y="332"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<auxiliary val="true"/>
<ggbscript val="StartAnimation(C,false)
StartAnimation(B,false)"/>
<ggbscript onUpdate=""/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<caption val="停止"/>
</element>
</construction>
</geogebra>