Aide Mémoire Turtle
"arrow"
"turtle"
"circle"
"square"
"triangle"
"classic"
"black"
"white"
"grey"
"red"
"orange"
"green"
"blue"
"navy"
"yellow"
"gold"
"tan"
"brown"
"sienna"
"wheat"
"cyan"
"pink"
"salmon"
"violet"
"purple"



http://wiki.tcl.tk/37701
https://www.tcl.tk/man/tcl8.6/TkCmd/colors.htm
Couleurs
Codes RGB
r=rouge g=vert b=bleu
(red) (green) (blue)


 ! "#$%&
"#rgb"
"#rrggbb"
"#rrrgggbbb"
'()
**+"*%(
*+#,,&
(r,g,b)
colormode()
Formes
penup() -./up pu
pendown() $./down pd
isdown()0état $1
color([,])2 3
45
pencolor()2 
fillcolor()2 4
pensize(4)4width
pen()0p16
pen()216
filling()0b 47
begin_fill() 114+
instructions de déplacements
end_fill() +41
colormode()0n r g b
colormode()"#,,8 r g b
Pinceau
4
7
Coordonnées / environnement
9fautstandard:
repère cartésien orthonormé4senstrigonotriquedegrés
;**17<
=logo47
4:.4/
=world1-:11.
1/
Position & Déplacements
forward()fd
backward()bk back
left(4)>4lt
right(4)>rt
setposition(,?)>?setpos goto
setx()>:$
sety(?)>:1?
home() >:4**
setheading(4):>:4seth
circle(?[[,4],])  ?4
position()0(x,y)pos
xcor()0x$
ycor()0y1
distance(x,y)0d@6:>?
distance(pos)0d@6:>.?/
heading()0a.4/
towards(x,y)0a4?
towards(pos)0a4.?/
dot([[,]])>
stamp()0id >
clearstamp()A
clearstamps([])A.B*
C*
undo()  
degrees() 441.D(E*F/
degrees(n)41.D/
radians() 4.D#GD#H("+/
mode(m)21%&"standard""logo""world"
title(t)27<
screensize()0.larg,haut) 7<
screensize(l,h[,coul])27<7
setup()27<
window_width()0larg 47<
window_height()0haut 7<
setworldcoordinates(llx,lly,urx,ury)2?-1.7reset()/
bgcolor([coul])2 7
bgpic([nom])2 :47.247'nopic':4/
©2016 - Laurent Pointal
Licence Creative Commons Paternité 4
Dernière version sur:
https://perso.limsi.fr/pointal/python:turtle
*
I*F
"!*F
#J*F
mode standard
?
end()
$-7<
bye()
77<
reset()
1-
resetscreen
clear()
AK1
clearscreen
tracer()0n
11
tracer([,])
211
delay()0n
1./>@
delay(?)
21./>@
update()
7>@
speed()0n
1
speed(n)
2 1n
 3*+"*5
"fastest"&*"fast"&"*
"normal"&E"slow"&("slowest"&"
hideturtle()
6ht
showturtle()
Lst
isvisible()0v
$
shape()
27
getshapes()0[nom]
7
register_shape(2)
47247
register_shape(,)
47.?/
register_shape(,)
47$@Shape
resizemode()0rmode

resizemode()
4"auto"
"user" "noresize"
Contrôles
lly
llx
urx
ury
Aide Mémoire V4
M1
.7stamp()/
1 / 1 100%
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !