File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 22h = 50.0
33
44def mandel ():
5- """Print a mandelbrot fractal to the console, yielding after each character
6- is printed"""
5+ """Print a mandelbrot fractal to the console, yielding after each character is printed"""
76 y = 0.0
87 while y < h :
98 x = 0.0
@@ -32,12 +31,14 @@ def mandel():
3231 y += 1
3332 yield
3433
34+ # run the mandelbrot
35+
3536try : from browser import request_animation_frame
3637except : request_animation_frame = None
3738
3839gen = mandel ()
3940def gen_cb (_time = None ):
40- gen .__next__ ()
41+ for _ in range ( 4 ): gen .__next__ ()
4142 request_animation_frame (gen_cb )
4243if request_animation_frame : gen_cb ()
43- else : list (gen )
44+ else : any (gen )
Original file line number Diff line number Diff line change 11textarea {
22 font-family : monospace;
3- resize : none ;
3+ resize : vertical ;
44}
55
66# code ,
You can’t perform that action at this time.
0 commit comments