Skip to content

Commit 31f9dca

Browse files
committed
labs: Remove unnecessary parens in randrect
Remove the parens around `rand1` in `randrect.evy` as they are no longer needed due to a recent change that allows niladic function calls in expressions without parens. Since this PR is in this file now, let's make it read nicer. There are probably other evy files that could have this change - one day we may find them.
1 parent 8ce6ebc commit 31f9dca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/lab/samples/ifs/img/randrect.evy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
fill (hsl 270 100 50 10)
22
width 0.2
33
for range 60
4-
x := (rand1) * 100
5-
y := (rand1) * 100
6-
s1 := (rand1) * 25 + 2
7-
s2 := (rand1) * 25 + 2
4+
x := rand1 * 100
5+
y := rand1 * 100
6+
s1 := rand1 * 25 + 2
7+
s2 := rand1 * 25 + 2
88

99
move x-s1*0.5 y-s2*0.5
1010
rect s1 s2

0 commit comments

Comments
 (0)