Skip to content

Commit 4bd54ec

Browse files
author
Tom De Smedt
committed
Merge branch 'master' of github.com:nodebox/nodebox-opengl
Conflicts: examples/12-experimental/04-live1.py examples/12-experimental/04-live2.py
2 parents d308762 + 2dde5a7 commit 4bd54ec

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

examples/12-experimental/04-live1.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# Add the upper directory (where the nodebox module is) to the search path.
22
import os, sys; sys.path.insert(0, os.path.join("..", ".."))
3+
<<<<<<< HEAD
34
import warnings
5+
=======
6+
>>>>>>> 2dde5a7eb4a0f379e8d2476487011bdacba7e165
47

58
from nodebox.graphics import *
69

710
# Live coding example.
811
# The actual drawing code is in 04-live2.py.
912
# This script starts the canvas and executes the commands from 04-live2.py.
13+
<<<<<<< HEAD
1014
# You can then edit and save the code there,
1115
# changes will be reflected automatically while the canvas keeps running.
16+
=======
17+
# You can then edit and save the code there, changes will be reflected automatically.
18+
>>>>>>> 2dde5a7eb4a0f379e8d2476487011bdacba7e165
1219

1320
SCRIPT = "04-live2.py"
1421
source = open(SCRIPT).read()
@@ -17,10 +24,14 @@
1724
def draw(canvas):
1825
global source
1926
global modified
27+
<<<<<<< HEAD
2028
try:
2129
exec(source)
2230
except Exception, e:
2331
warnings.warn(str(e), Warning)
32+
=======
33+
exec(source)
34+
>>>>>>> 2dde5a7eb4a0f379e8d2476487011bdacba7e165
2435
if os.path.getmtime(SCRIPT) > modified:
2536
source = open(SCRIPT).read()
2637
modified = os.path.getmtime(SCRIPT)
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
<<<<<<< HEAD
12
# Live coding example.
23
# See 04-live1.py.
34
# The commands below are read and executed in a canvas there.
45
# If you edit and save this file, changes are automatically reflected,
56
# while the canvas started in 04-live1.py keeps on running.
7+
=======
8+
# See 04-live1.py.
9+
# The commands below are read and executed in a canvas there.
10+
# If you edit and save this file, changes are automatically reflected.
11+
>>>>>>> 2dde5a7eb4a0f379e8d2476487011bdacba7e165
612

713
#canvas.clear()
814
for i in range(10):
@@ -11,4 +17,8 @@
1117
r = random(20) + 50
1218
fill(random(), 0.0, random(0.25), random(0.25))
1319
stroke(0, 0.2)
14-
ellipse(x, y, random, r)
20+
<<<<<<< HEAD
21+
ellipse(x, y, random, r)
22+
=======
23+
ellipse(x, y, r, r)
24+
>>>>>>> 2dde5a7eb4a0f379e8d2476487011bdacba7e165

0 commit comments

Comments
 (0)