利用GeoGebra绘制吉布提国旗
2019-09-06 05:39
本范例演示了如何使用GeoGebra绘制吉布提国旗。通过多边形、顶点和三角形中心等几何作图命令,精确构建了国旗的矩形背景及特定比例的五角星图案。该过程展示了几何变换与基础图形构造的应用,适合学习多边形绘制与几何定位。
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.557.0" app="classic" platform="d" id="b2aec395-3e19-4b66-8afb-269bb2d59872" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="1044" height="800" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.22126436781609196" orientation="1" />
</panes>
<views>
<view id="4097" visible="false" inframe="true" stylebar="true" location="1,1,1,1" size="400" window="487,456,1128,997" />
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 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 | 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="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" 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="1" visible="true" inframe="false" stylebar="true" location="1" size="775" window="100,100,600,400" />
<view id="2" visible="true" inframe="false" stylebar="false" location="3" size="231" window="100,100,600,400" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="298" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" 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 | | 100001" position="1" help="false" />
<input show="true" cmd="true" top="algebra" />
<dockBar show="true" east="true" />
</perspective>
</perspectives>
<labelingStyle val="0"/>
<font size="18"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="775" height="551"/>
<coordSystem xZero="98.15874642893903" yZero="470.4576806881262" scale="92.74950080076985" yscale="92.74950080077042"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="255" g="239" b="213"/>
<axesColor r="0" g="0" b="0"/>
<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"/>
<collapsed val="3"/>
</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="">
<command name="Polygon">
<input a0="(0, 0)" a1="(6, 0)" a2="(6, 4)" a3="(0, 4)"/>
<output a0="q1" a1="f" a2="g" a3="h" a4="i"/>
</command>
<element type="polygon" label="q1">
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="153" g="51" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelOffset x="-2" y="0"/>
<labelMode val="0"/>
</element>
<element type="segment" label="f">
<show object="true" label="false"/>
<objColor r="153" g="51" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="0.0" y="6.0" z="0.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="g">
<show object="true" label="false"/>
<objColor r="153" g="51" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="-4.0" y="0.0" z="24.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="h">
<show object="true" label="false"/>
<objColor r="153" g="51" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="0.0" y="-6.0" z="24.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="i">
<show object="true" label="false"/>
<objColor r="153" g="51" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="4.0" y="0.0" z="0.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Polygon">
<input a0="(0, 4)" a1="(0, 0)" a2="3"/>
<output a0="poly1"/>
</command>
<element type="polygon" label="poly1">
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="1.0"/>
<layer val="1"/>
<labelMode val="0"/>
</element>
<command name="Vertex">
<input a0="poly1" a1="3"/>
<output a0="A"/>
</command>
<element type="point" label="A">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="3.4641016151377553" y="1.9999999999999991" z="1.0"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<command name="Polygon">
<input a0="(0, 0)" a1="(6, 0)" a2="(6, 2)" a3="A"/>
<output a0="q2" a1="j" a2="k" a3="l" a4="a"/>
</command>
<element type="polygon" label="q2">
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="106" g="178" b="231" alpha="1.0"/>
<layer val="0"/>
<labelMode val="0"/>
</element>
<element type="segment" label="j">
<show object="true" label="false"/>
<objColor r="106" g="178" b="231" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="0.0" y="6.0" z="0.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="k">
<show object="true" label="false"/>
<objColor r="106" g="178" b="231" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="-2.0" y="0.0" z="12.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="l">
<show object="true" label="false"/>
<objColor r="106" g="178" b="231" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="8.881784197001252E-16" y="-2.5358983848622447" z="5.071796769724484"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="a">
<show object="true" label="false"/>
<objColor r="106" g="178" b="231" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="1.9999999999999991" y="-3.4641016151377553" z="0.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Polygon">
<input a0="(6, 2)" a1="(6, 4)" a2="(0, 4)" a3="A"/>
<output a0="q3" a1="m" a2="n" a3="p" a4="a_1"/>
</command>
<element type="polygon" label="q3">
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="18" g="173" b="43" alpha="1.0"/>
<layer val="0"/>
<labelMode val="0"/>
</element>
<element type="segment" label="m">
<show object="true" label="false"/>
<objColor r="18" g="173" b="43" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="-2.0" y="0.0" z="12.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="n">
<show object="true" label="false"/>
<objColor r="18" g="173" b="43" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="0.0" y="-6.0" z="24.0"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="p">
<show object="true" label="false"/>
<objColor r="18" g="173" b="43" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="2.000000000000001" y="3.4641016151377553" z="-13.856406460551021"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="a_1">
<show object="true" label="false"/>
<objColor r="18" g="173" b="43" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="-8.881784197001252E-16" y="2.5358983848622447" z="-5.071796769724484"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="TriangleCenter">
<input a0="(0, 0)" a1="A" a2="(0, 4)" a3="1"/>
<output a0="B"/>
</command>
<element type="point" label="B">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="1.1547005383792517" y="1.9999999999999996" z="1.0"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<expression label="C" exp="B + (2 / 5 * (cos(18°), sin(18°)))" type="point" />
<element type="point" label="C">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="1.535123144897313" y="2.1236067977499786" z="1.0"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<command name="五角星区域">
<input a0="B" a1="C"/>
<output a0="poly2"/>
</command>
<element type="polygon" label="poly2">
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="255" g="0" b="0" alpha="1.0"/>
<layer val="2"/>
<labelMode val="0"/>
</element>
</construction>
</geogebra>