本文整理汇总了Python中turtle.pd函数的典型用法代码示例。如果您正苦于以下问题:Python pd函数的具体用法?Python pd怎么用?Python pd使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pd函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: ustDoNastTetki
def ustDoNastTetki(orient=1, bokKw=10):
turtle.pu()
turtle.rt(90*orient)
turtle.fd(bokKw*2)
turtle.lt(90*orient)
turtle.fd(bokKw*3)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_2.py
示例2: ustNaStart
def ustNaStart(r):
turtle.lt(90)
turtle.pu()
turtle.rt(90)
turtle.fd(r)
turtle.lt(90)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_2.py
示例3: circle
def circle(x,y,size):
turtle.pu()
turtle.goto(x,y)
turtle.pd()
turtle.begin_fill()
turtle.circle(size)
turtle.end_fill()
开发者ID:ameen16-meet,项目名称:MEET-YL1,代码行数:7,代码来源:ameenproject.py
示例4: line
def line(a1,b1,a2,b2,c):
turtle.pu()
turtle.goto(a1,b1)
turtle.color(c)
turtle.pd()
turtle.pensize(10)
turtle.goto(a2,b2)
开发者ID:DCoelhoM,项目名称:Tic-Tac-Toe-Python,代码行数:7,代码来源:Tic-Tac-Toe_by_DCM.py
示例5: ustNaStart
def ustNaStart(dlBokKw, ile):
turtle.pu()
turtle.bk(dlBokKw * ile / 2 +5)
turtle.lt(90)
turtle.fd(dlBokKw * (ile - 2) / 2 - 5)
turtle.rt(90)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_3.py
示例6: ustDoPOka
def ustDoPOka(a):
turtle.rt(60)
turtle.bk(a * 1.5)
turtle.lt(60)
turtle.pu()
turtle.rt(180)
turtle.fd(4 * a)
turtle.lt(60)
turtle.fd(4 * a)
turtle.lt(60)
turtle.fd(4 * a)
turtle.rt(60)
turtle.fd(4 * a)
turtle.lt(60)
turtle.lt(360 / 12)
turtle.fd(a * 8)
turtle.lt(360 / 12)
turtle.fd(a * 8)
turtle.lt(360 / 12)
turtle.fd(a * 8)
turtle.lt(360 / 12)
turtle.lt(60)
turtle.fd(4 * a)
turtle.lt(60)
turtle.fd(a * 4)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:26,代码来源:Zadanie_1.py
示例7: turmandel
def turmandel(step, zoom, xres, yres, xthresh, ythresh):
turtle.setheading(0)
for y in range(yres):
turtle.pu()
turtle.setpos(0, y)
turtle.pd()
for x in range(xres):
x = float(x)
y = float(y)
u = float(x)/float((xres/zoom))-xthresh
v = float(y)/float((yres/zoom))-ythresh
x0 = float(u)
y0 = float(v)
a = 0.0
b = 0.0
i = step
while ((i>0) and (a+b<=4.0)):
a = float(x0*x0)
b = float(y0*y0)
y0 = float(2.0*x0*y0+v)
x0 = float(a-b+u)
i = i - 1
color = i % 255
turtle.pencolor((color, color, color))
if i < 1:
turtle.pencolor((0,0,0))
turtle.fd(1)
开发者ID:lgaff,项目名称:snippets,代码行数:27,代码来源:turtlestuff.py
示例8: ustDoElki
def ustDoElki(dlBokKw, bokKr):
turtle.pu()
turtle.fd(bokKr - dlBokKw)
turtle.lt(90)
turtle.fd(dlBokKw)
turtle.lt(90)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_4.py
示例9: ustDo2Elki
def ustDo2Elki(dlBokKw, bokKr, bokDl):
turtle.pu()
turtle.fd(bokKr - dlBokKw *2)
turtle.rt(90)
turtle.fd(bokDl - dlBokKw*2)
turtle.rt(90)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_4.py
示例10: ustNaStartKwiatki
def ustNaStartKwiatki(rozmKanwy, segment):
turtle.pu()
turtle.bk(225)
turtle.lt(90)
turtle.bk(225)
turtle.rt(90)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_4.py
示例11: draw_triangle
def draw_triangle(x,y):
turtle.penup()
turtle.goto(x,y)
turtle.pd()
turtle.goto(x+25,y+50)
turtle.goto(x+50,y)
turtle.goto(x,y)
开发者ID:noor16-meet,项目名称:MEET-YL1,代码行数:7,代码来源:meetconf.py
示例12: ustNaStart
def ustNaStart(a):
turtle.pu()
turtle.bk(a)
turtle.lt(90)
turtle.fd(a / 2)
turtle.rt(90)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_1.py
示例13: draw_triangle
def draw_triangle(x,y):
turtle.pu()
turtle.goto(x,y)
turtle.pd()
turtle.goto(x+60,y+85)
turtle.goto(x+85,y)
turtle.goto(x,y)
开发者ID:talam16-meet,项目名称:MEET-YL1,代码行数:7,代码来源:meetconf.py
示例14: ustDoNastKraw
def ustDoNastKraw(ile, bokKw=10):
turtle.pu()
turtle.lt(90)
turtle.fd(bokKw)
turtle.rt(90)
turtle.rt(180)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_2.py
示例15: rowOfShapes
def rowOfShapes(number):
for x in xrange(number):
hexaTrangle(25,90,randomColor(),randomColor())
turtle.left(90)
turtle.pu()
turtle.fd(15)
turtle.pd()
开发者ID:KrbAlmryde,项目名称:Homework,代码行数:7,代码来源:ISTA130_HW2c.py
示例16: ustDoKwadratu
def ustDoKwadratu(dlBokKw):
turtle.pu()
turtle.fd(dlBokKw * 2)
turtle.lt(90)
turtle.fd(dlBokKw * 2)
turtle.lt(90)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_4.py
示例17: linha
def linha(x1,y1,x2,y2):
""" Traça uma linha entre dois pontos."""
turtle.up()
turtle.goto(x1,y1)
turtle.pd()
turtle.goto(x2,y2)
turtle.up()
开发者ID:ernestojfcosta,项目名称:IPRP,代码行数:7,代码来源:graficos_2.py
示例18: stam
def stam(x,y):
turtle.begin_fill()
turtle.pu()
turtle.goto(x,y)
turtle.pd()
turtle.circle(10)
turtle.end_fill()
开发者ID:dina16-meet,项目名称:MEET-YL1,代码行数:7,代码来源:dina.py
示例19: ustDoNosa
def ustDoNosa(a):
turtle.pu()
turtle.rt(60)
turtle.bk(1.5 * a)
turtle.fd(4 * a)
turtle.lt(360 / 6)
turtle.fd(4 * a)
turtle.lt(360 / 6)
turtle.fd(4 * a)
turtle.lt(360 / 6)
turtle.rt(180)
turtle.lt(60)
turtle.fd(a * 4)
turtle.lt(120)
turtle.fd(a * 8)
turtle.lt(360 / 12)
turtle.fd(a * 8)
turtle.lt(360 / 12)
turtle.fd(a * 8)
turtle.lt(360 / 12)
turtle.fd(a * 8)
turtle.lt(360 / 12)
turtle.lt(60)
turtle.fd(8 * a)
turtle.lt(30)
turtle.lt(360 / 6)
turtle.fd(2 * a)
turtle.rt(360 / 6)
turtle.fd(2 * a)
turtle.rt(360/ 6)
turtle.fd(a * 2)
turtle.lt(360 / 6)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:33,代码来源:Zadanie_1.py
示例20: ustDoNastElem
def ustDoNastElem(dlBokMalKw):
turtle.pu()
turtle.rt(90)
turtle.fd(dlBokMalKw * 5)
turtle.lt(90)
turtle.fd(dlBokMalKw)
turtle.pd()
开发者ID:ujanlabs,项目名称:miniLogia_Py,代码行数:7,代码来源:Zadanie_2.py
注:本文中的turtle.pd函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论