File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 55 c = ' CubicBezierCurve'
66 l = ' Step'
77 h = ' HorizontalLine'
8- s = ' BezierCurve'
98 q = ' QuadraticBezierCurve'
9+ s = ' BezierCurve'
10+ v = ' VerticalLine'
1011
1112 # Shorter forms:
1213 Pie = ' PieGraph'
Original file line number Diff line number Diff line change 55 Draws a vertical line.
66
77 The heading will not be changed.
8+ . EXAMPLE
9+ turtle VerticalLine 42
10+ . EXAMPLE
11+ turtle VerticalLine 42 pathdata
812#>
913param (
14+ # The length of the line.
1015[double ]
1116$Distance
1217)
1318
14- $this.GoTo ($this.Position.X , $this.Position.Y + $Distance )
19+ $instruction =
20+ if ($this.IsPenDown ) {
21+ " v $Distance "
22+ } else {
23+ " m 0 $ ( $this.Position.Y + $Distance ) "
24+ }
25+ $this.Position = 0 , $Distance
26+ $this.Steps.Add ($instruction )
You can’t perform that action at this time.
0 commit comments