Skip to content

Commit 4820250

Browse files
committed
Rearrange mandelbrot.py
1 parent 31c6df3 commit 4820250

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

wasm/demo/snippets/mandelbrot.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
try:
2-
from browser import request_animation_frame
3-
except:
4-
request_animation_frame = None
5-
61
w = 50.0
72
h = 50.0
83

@@ -37,6 +32,9 @@ def mandel():
3732
y += 1
3833
yield
3934

35+
try: from browser import request_animation_frame
36+
except: request_animation_frame = None
37+
4038
gen = mandel()
4139
def gen_cb(_time=None):
4240
gen.__next__()

0 commit comments

Comments
 (0)