File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -1992,7 +1992,23 @@ $this.PathAttribute = [Ordered]@{'opacity' = $Opacity}
1992
1992
1993
1993
</GetScriptBlock >
1994
1994
<SetScriptBlock >
1995
- param(
1995
+ < #
1996
+ .SYNOPSIS
1997
+ Sets the Turtle Path Animation
1998
+ .DESCRIPTION
1999
+ Sets an animation for the Turtle path.
2000
+ .EXAMPLE
2001
+ turtle flower PathAnimation ([Ordered]@{
2002
+ attributeName = 'fill' ; values = "#4488ff;#224488;#4488ff" ; repeatCount = 'indefinite'; dur = "4.2s" # ; additive = 'sum'
2003
+ }, [Ordered]@{
2004
+ attributeName = 'stroke' ; values = "#224488;#4488ff;#224488" ; repeatCount = 'indefinite'; dur = "2.1s" # ; additive = 'sum'
2005
+ }, [Ordered]@{
2006
+ type = 'rotate' ; values = 0, 360 ;repeatCount = 'indefinite'; dur = "41s"
2007
+ }) save ./AnimatedFlower.svg
2008
+ #>
2009
+ param(
2010
+ # The path animation object.
2011
+ # This may be a string containing animation XML, XML, or a dictionary containing animation settings.
1996
2012
[PSObject]
1997
2013
$PathAnimation
1998
2014
)
@@ -2024,6 +2040,9 @@ $newAnimation = @(foreach ($animation in $PathAnimation) {
2024
2040
if ($animation -is [string]) {
2025
2041
$animation
2026
2042
}
2043
+ if ($animation.OuterXml) {
2044
+ $animation.OuterXml
2045
+ }
2027
2046
})
2028
2047
2029
2048
$this | Add-Member -MemberType NoteProperty -Force -Name '.PathAnimation' -Value $newAnimation
You can’t perform that action at this time.
0 commit comments