Monday, February 20, 2012
Sunday, February 19, 2012
KTurtle - Circles and Lines
reset
repeat 36 {
repeat 4 {
fw 100
tr 45
repeat 36 {
fw 2
tl 10}
tr 45}
fw 4
tr 10}
KTurtle - Heighway Dragon
Commands for Heighway Dragon -
reset
canvassize 500, 500
go 320, 400
tr 90
$size = 7
learn X $depth {
if $depth>0 {
X $depth-1
tl 90
Y $depth-1
fw $size}}
learn Y $depth {
if $depth>0 {
fw $size
X $depth-1
tr 90
Y $depth-1}}
pencolor 0,255,0
fw $size
X 10
tl 90
pencolor 255,0,0
Y 10
fw $size
go 50,450
reset
canvassize 500, 500
go 320, 400
tr 90
$size = 7
learn X $depth {
if $depth>0 {
X $depth-1
tl 90
Y $depth-1
fw $size}}
learn Y $depth {
if $depth>0 {
fw $size
X $depth-1
tr 90
Y $depth-1}}
pencolor 0,255,0
fw $size
X 10
tl 90
pencolor 255,0,0
Y 10
fw $size
go 50,450
Thursday, February 16, 2012
KTurtle - Spiral
Commands for Spiral - reset |
repeat 180 {fw .25 tr 1} |
repeat 180 {fw .50 tr 1} |
repeat 180 {fw .75 tr 1} |
repeat 180 {fw 1 tr 1} |
repeat 180 {fw 1.25 tr 1} |
repeat 180 {fw 1.50 tr 1} |
repeat 180 {fw 1.75 tr 1} |
repeat 180 {fw 2 tr 1} |
repeat 180 {fw 2.25 tr 1} |
repeat 180 {fw 2.50 tr 1} |
repeat 180 {fw 2.75 tr 1} |
repeat 180 {fw 3 tr 1} |
center |
Monday, February 13, 2012
KTurtle - Hectasign
Command for Hectasign -
reset
repeat 2 {tr 90 repeat 2 {repeat 6 {fw 10 tr 60}
repeat 6 {fw 50 tr 60}
repeat 6 {fw 90 tr 60}
repeat 6 {fw 10 tl 60}
repeat 6 {fw 50 tl 60}
repeat 6 {fw 90 tl 60}
tr 120
repeat 6 {fw 10 tr 60}
repeat 6 {fw 50 tr 60}
repeat 6 {fw 90 tr 60}
tr 60
repeat 6 {fw 10 tr 60}
repeat 6 {fw 50 tr 60}
repeat 6 {fw 90 tr 60}
repeat 6 {fw 10 tl 60}
repeat 6 {fw 50 tl 60}
repeat 6 {fw 90 tl 60}}}
tr 180
reset
repeat 2 {tr 90 repeat 2 {repeat 6 {fw 10 tr 60}
repeat 6 {fw 50 tr 60}
repeat 6 {fw 90 tr 60}
repeat 6 {fw 10 tl 60}
repeat 6 {fw 50 tl 60}
repeat 6 {fw 90 tl 60}
tr 120
repeat 6 {fw 10 tr 60}
repeat 6 {fw 50 tr 60}
repeat 6 {fw 90 tr 60}
tr 60
repeat 6 {fw 10 tr 60}
repeat 6 {fw 50 tr 60}
repeat 6 {fw 90 tr 60}
repeat 6 {fw 10 tl 60}
repeat 6 {fw 50 tl 60}
repeat 6 {fw 90 tl 60}}}
tr 180
KTurtle - Cone
Cone |
Commands for Cone - reset |
penup |
tl 90 |
fw 172.5 |
tr 90 |
pendown |
repeat 360{fw 3 tr 1} |
repeat 360{fw 2.75 tr 1} |
repeat 360{fw 2.5 tr 1} |
repeat 360{fw 2.25 tr 1} |
repeat 360{fw 2 tr 1} |
repeat 360{fw 1.75 tr 1} |
repeat 360{fw 1.5 tr 1} |
repeat 360{fw 1.25 tr 1} |
repeat 360{fw 1 tr 1} |
repeat 360{fw .75 tr 1} |
repeat 360{fw .5 tr 1} |
repeat 360{fw .25 tr 1} |
Subscribe to:
Posts (Atom)