Skip to content

Commit efdde8c

Browse files
committed
file rearangements
1 parent bf5137e commit efdde8c

File tree

10 files changed

+11
-4
lines changed

10 files changed

+11
-4
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
jruby-1.7.3
1+
1.9.3-p392
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

simple_live_coding.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
class RubyDraw < Processing::App
44

5-
load_library 'string_object', 'lines', 'cursor', 'parse', 'description_list', 'editor', 'canvas', 'watch'
5+
require_relative 'main/string_object'
6+
require_relative 'main/lines'
7+
require_relative 'main/cursor'
8+
require_relative 'main/parse'
9+
require_relative 'main/description_list'
10+
require_relative 'main/editor'
11+
require_relative 'main/canvas'
12+
require_relative 'main/watch'
613

714
def setup
815
$width = 700
@@ -40,9 +47,9 @@ def draw
4047
text "this is a DEMO app", $width/2, $height-40
4148
text "write 'rect 20 20 200 200' and drag the values...", $width/2, $height-20
4249

43-
fill color(14, 13, 0)
50+
fill color 14, 13, 0
4451
@cursor.draw_line
45-
fill color(104, 153, 0)
52+
fill color 104, 153, 0
4653

4754
if mouse_pressed?
4855
loop

0 commit comments

Comments
 (0)