Skip to content

Commit 8ce6ebc

Browse files
committed
Revert "labs: Rework random rectangle generation"
This should not be needed now that we have identified the cause of the difference being fused instructions, which are no longer generated. Commit: 6f2a675
1 parent 4e0a422 commit 8ce6ebc

File tree

2 files changed

+364
-72
lines changed

2 files changed

+364
-72
lines changed
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
fill (hsl 270 100 50 10)
22
width 0.2
33
for range 60
4-
x := roundedRand1 * 100
5-
y := roundedRand1 * 100
6-
s1 := roundedRand1 * 25 + 2
7-
s2 := roundedRand1 * 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
1111
end
12-
13-
// roundedRand1 is a rounding rand1 function, to avoid rounding differences on
14-
// Mac and Linux.
15-
func roundedRand1:num
16-
r := rand1 * 1024
17-
r = round r
18-
return r / 1024
19-
end

0 commit comments

Comments
 (0)