Examples/AnimateMotion.PSSVG.ps1
#requires -Module PSSVG $path = "M20,50 C20,-50 180,150 180,50 C180-50 20,150 20,50 z" SVG -viewBox "0 0 200 100" @( SVG.path -d $path -Fill none -Stroke lightgrey SVG.circle -r 5 -Fill red ( SVG.animateMotion -Dur 10s -RepeatCount 'indefinite' -Path $path ) SVG.rect -Width 2 -Height 2 -X -1 -Y -1 -Fill blue @( SVG.animateMotion -Dur 10s -RepeatCount 'indefinite' -Path $path SVG.animateTransform -AttributeName transform -From "0 0 0" -To "360 0 0" -dur "5s" -RepeatCount indefinite -AttributeType xml -type rotate ) ) -OutputPath (Join-Path $psScriptRoot AnimateMotion.svg) |