Skip to content

Commit 6fd8283

Browse files
docs: Turtles On a Text Path Updates ( re #272 )
Adjusting arc size to fit text, adding a bend morph example
1 parent 1c8b2b7 commit 6fd8283

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Examples/TurtlesOnATextPath.turtle.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
if ($PSScriptRoot) { Push-Location $PSScriptRoot}
22

3-
$turtlesOnATextPath = turtle rotate 90 jump 50 rotate -90 ArcRight 50 60 text 'turtles on a text path' textattribute @{'font-size'=36}
3+
$turtlesOnATextPath = turtle rotate 90 jump 50 rotate -90 ArcRight 500 60 text 'turtles on a text path' textattribute @{'font-size'=36}
44
$turtlesOnATextPath | Save-Turtle ./TurtlesOnATextPath.svg
5+
$turtlesOnATextPath = $turtlesOnATextPath.Morph(@(
6+
$turtlesOnATextPath
7+
turtle rotate 90 jump 50 rotate -90 ArcRight 500 -60
8+
$turtlesOnATextPath
9+
))
510

6-
7-
$textPath2 = turtle rotate 90 jump 50 rotate -90 ArcRight 50 -60
11+
$turtlesOnATextPath | Save-Turtle ./TurtlesOnATextPath-BendMorph.svg
812

913
$turtlesOnATextPath =
1014
turtle rotate 90 jump 50 rotate -90 rotate -30 forward 200 text 'turtles on a text path' morph @(

0 commit comments

Comments
 (0)