|
1.
|
|
|
<p>You can control a kig construction by means of a "pykig"
python script, that can be executed with the command
<code>pykig.py</code>. Here is a nice example
(<code>hexagons.kpy</code>) you can try:
<code><pre>
kigdocument.hideobjects()
def hexagons (c, v, n):
hexagon = PolygonBCV (c, v, 6)
if n <= 0:
hexagon.show()
for i in range(6):
PolygonSide (hexagon, i, True)
return
cnew = MidPoints (c, v)
hexagons (cnew, v, n-1)
for k in [2,4]:
v1 = PolygonVertex (hexagon, k)
cnew = MidPoints (c, v1)
hexagons (cnew, v1, n-1)
hexagons (Point(0,0), Point(1,0), 5)
</pre></code>
|
|
|
i18n: file: tips:2
i18n: ectx: @info:tipoftheday
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
<p>Kig құрылымын "pykig" деген python скриптімен
басқаруға болады, ал ол <code>pykig.py</code> деген
командамен орындалады. Мұнда, орындап көру үшін, бір
(<code>hexagons.kpy</code> деген) жақсы мысал келтірілген:
<code><pre>
kigdocument.hideobjects()
def hexagons (c, v, n):
hexagon = PolygonBCV (c, v, 6)
if n <= 0:
hexagon.show()
for i in range(6):
PolygonSide (hexagon, i, True)
return
cnew = MidPoints (c, v)
hexagons (cnew, v, n-1)
for k in [2,4]:
v1 = PolygonVertex (hexagon, k)
cnew = MidPoints (c, v1)
hexagons (cnew, v1, n-1)
hexagons (Point(0,0), Point(1,0), 5)
</pre></code>
|
|
Translated by
Sairan Kikkarin
|
|
|
|
Located in
tips.cpp:3
|
|
342.
|
|
|
Locus
|
|
|
|
Нүктелердің геометриялық орны
|
|
Translated by
Sairan Kikkarin
|
|
|
|
Located in
misc/special_constructors.cc:391
|
|
431.
|
|
|
Tangent
|
|
|
|
Еңіс
|
|
Translated by
Sairan Kikkarin
|
|
|
|
Located in
misc/special_constructors.cc:2174
|
|
1200.
|
|
|
Enable/disable hidden objects' visibility.
|
|
|
|
Нысаның көрінуін ауыстыру (көрсету/жасыру).
|
|
Translated by
Harald Sitter
|
|
|
|
Located in
kig/kig_part.cpp:333
|