public
Description: Code as Art, Art as Code. Processing and Ruby are meant for each other.
Homepage: http://github.com/jashkenas/ruby-processing/wikis
Clone URL: git://github.com/jashkenas/ruby-processing.git
Search Repo:
Initial attempt at a live coding environment, without installing JRuby.
jashkenas (author)
Fri May 02 20:57:41 -0700 2008
commit  7ef4fd0af0d5cd0e5d9021aef1b85a1876653eae
tree    50c4effea38bf82175810b4c67c679be3ff9e45c
parent  8bbd2d3b1fb0a0635a2ae426f72f21bc2d13d107
...
134
135
136
 
 
 
 
137
138
139
...
134
135
136
137
138
139
140
141
142
143
0
@@ -134,6 +134,10 @@
0
       display_slider_frame if self.class.slider_frame
0
     end
0
     
0
+ def inspect
0
+ "#<Processing::App:#{self.class}:#{@title}>"
0
+ end
0
+
0
     def setup() end
0
     def draw() end
0
       
...
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
0
@@ -1 +1,12 @@
0
+#!/bin/bash
0
+
0
+# This script opens up Ruby-Processing Sketches in a Live-Coding
0
+# Environment (jIRB), so that you can go code on the fly.
0
+
0
+if [ -e "$1" ]
0
+then
0
+ java -cp script/base_files/jruby-complete.jar org.jruby.Main script/live_files/live_coding.rb "$1"
0
+else
0
+ java -cp script/base_files/jruby-complete.jar org.jruby.Main script/live_files/empty_coding.rb
0
+fi
...
 
 
 
 
 
 
...
1
2
3
4
5
6
0
@@ -1 +1,7 @@
0
+# If you don't pass in a class, it just starts up IRB with
0
+# Ruby-Processing loaded.
0
+
0
+require 'irb'
0
+require 'ruby-processing'
0
+IRB.start
...
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
0
@@ -1 +1,9 @@
0
+# An IRB shell for live coding.
0
+# This flavor comes loaded with your sketch.
0
+
0
+require 'irb'
0
+require ARGV[0]
0
+ARGV[0] = nil
0
+APP = Processing::App.current
0
+IRB.start

Comments

    No one has commented yet.