</h1>
<form id="form">
<textarea id="code" rows="10" width="100%">def random_dot():
- x = 512 * random()
- y = 512 * random()
+ x = 200 * random()
+ y = 200 * random()
radius = 4 + 6 * random()
- circle(x, y, radius);
- fill();
+ circle(x, y, radius)
+ fill()
-for i in range(1000):
+for i in range(100):
if i %2 == 0:
set_color('red')
else:
set_color('blue')
- random_dot();</textarea>
+ random_dot()</textarea>
<button type="submit">Run code</button>
</form>
<img id="output"></img>