Skip to content

Commit cafdf66

Browse files
docs: Turtle Path Animation example ( re #244 )
1 parent dcb4575 commit cafdf66

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Types/Turtle/get_PathAnimation.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<#
2+
.SYNOPSIS
3+
Gets the Turtle's Path Animation
4+
.DESCRIPTION
5+
Gets any path animations associated with the current turtle.
6+
.EXAMPLE
7+
turtle flower PathAnimation ([Ordered]@{
8+
attributeName = 'fill' ; values = "#4488ff;#224488;#4488ff" ; repeatCount = 'indefinite'; dur = "4.2s" # ; additive = 'sum'
9+
}, [Ordered]@{
10+
attributeName = 'stroke' ; values = "#224488;#4488ff;#224488" ; repeatCount = 'indefinite'; dur = "2.1s" # ; additive = 'sum'
11+
}, [Ordered]@{
12+
type = 'rotate' ; values = 0, 360 ;repeatCount = 'indefinite'; dur = "41s"
13+
}) save ./AnimatedFlower.svg
14+
#>
115
if ($this.'.PathAnimation') {
216
return $this.'.PathAnimation'
317
}

0 commit comments

Comments
 (0)