没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > jankity |
jankity
|
0 | 0 | 22 |
贡献者 | 讨论 | 代码提交 |
Jankity1. (adj., slang) Badly assembled, poor quality.2. (n) JRuby + Processing integration of awesome power.Go Here Instead ProbablyThe Ruby-Processing folks have done a much better job of Ruby-tizing Processing. They even have applet compilation working! Woo!
What It IsJankity links Processing.org to a friendly interpreted language using JRuby. This allows runtime re-evaluation of code while sketches are running, and manipulation from a read-eval-print loop (irb, in this case.)
This means:
nice syntax (closures, easy reflection and extending/mangling, etc.) runtime inspection and modification it's FUN! Try it now with GettingStarted! Runs the same everywhere JRuby and Processing run, which includes Linux, OSX, and Windows.
What It Is Notoptimized "close to the metal" Java-like compilable (yet) Includes:a DRb server for evaluating code from an external source (an editor, another program, who knows) an example DRb plugin for vim (requires vim+ruby). some useful classes for assembling sketches Looks Like:(more at SampleCode eventually)
class BoxMania < Sketch
def initialize
super do
object :class => PHelper::Camera3D do
block do
background 0
@rx = pi_pulse 200
@rz = pi_pulse 100
end
box :sx => 0.5, :fill => Red do
sphere :x => 0.5, :ty => 1
block { @rz = pi_pulse 50 }
end
box :sy => 0.5, :fill => Blue
end
end
end
end