We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Turtle.get/set_Opacity
1 parent 8a8b121 commit c643e65Copy full SHA for c643e65
Types/Turtle/get_Opacity.ps1
@@ -0,0 +1,14 @@
1
+<#
2
+.SYNOPSIS
3
+ Gets the turtle opacity
4
+.DESCRIPTION
5
+ Gets the opacity of the turtle path.
6
+#>
7
+if (-not $this.'.PathAttribute') {
8
+ $this | Add-Member -MemberType NoteProperty -Name '.PathAttribute' -Value ([Ordered]@{}) -Force
9
+}
10
+if ($this.'.PathAttribute'.'opacity') {
11
+ return $this.'.PathAttribute'.'opacity'
12
+} else {
13
+ return 1.0
14
Types/Turtle/set_Opacity.ps1
+ Sets the opacity
+ Sets the opacity of the path
+.EXAMPLE
+ turtle forward 100 opacity 0.5 save ./dimLine.svg
+param(
+[double]
+$Opacity = 'nonzero'
+)
+
+$this.PathAttribute = [Ordered]@{'opacity' = $Opacity}
0 commit comments