ruby-processing 2.4.4 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rpextras.jar +0 -0
  3. data/lib/ruby-processing.rb +8 -6
  4. data/lib/ruby-processing/app.rb +54 -67
  5. data/lib/ruby-processing/config.rb +7 -7
  6. data/lib/ruby-processing/exporters/application_exporter.rb +37 -38
  7. data/lib/ruby-processing/exporters/base_exporter.rb +34 -37
  8. data/lib/ruby-processing/exporters/creator.rb +27 -25
  9. data/lib/ruby-processing/helper_methods.rb +18 -22
  10. data/lib/ruby-processing/helpers/numeric.rb +5 -6
  11. data/lib/ruby-processing/helpers/string.rb +11 -20
  12. data/lib/ruby-processing/library_loader.rb +33 -35
  13. data/lib/ruby-processing/runner.rb +118 -65
  14. data/lib/ruby-processing/runners/base.rb +21 -26
  15. data/lib/ruby-processing/runners/live.rb +3 -4
  16. data/lib/ruby-processing/runners/run.rb +1 -3
  17. data/lib/ruby-processing/runners/watch.rb +8 -8
  18. data/lib/ruby-processing/version.rb +1 -1
  19. data/lib/templates/application/lib/args.txt.erb +1 -1
  20. data/lib/templates/application/run.erb +3 -3
  21. data/library/control_panel/control_panel.rb +29 -29
  22. data/library/fastmath/fastmath.rb +3 -0
  23. data/library/file_chooser/file_chooser.rb +11 -13
  24. data/library/vecmath/vecmath.rb +6 -35
  25. data/samples/Rakefile +3 -1
  26. data/samples/configRP5/configRP5.pde +150 -0
  27. data/samples/contributed/Rakefile +6 -6
  28. data/samples/contributed/animator.rb +6 -6
  29. data/samples/contributed/bezier_playground.rb +29 -68
  30. data/samples/contributed/circle_collision.rb +6 -13
  31. data/samples/contributed/elegant_ball.rb +14 -17
  32. data/samples/contributed/empathy.rb +8 -5
  33. data/samples/contributed/fibonacci_sphere.rb +10 -49
  34. data/samples/contributed/full_screen.rb +1 -1
  35. data/samples/contributed/grapher.rb +10 -9
  36. data/samples/contributed/gravity.rb +11 -16
  37. data/samples/contributed/jwishy.rb +18 -20
  38. data/samples/contributed/quadraticvertex.rb +26 -26
  39. data/samples/external_library/java_processing/custom/landscape.rb +6 -4
  40. data/samples/external_library/java_processing/hemesh/twin_iso.rb +69 -71
  41. data/samples/external_library/java_processing/pbox2d/bumpy_surface_noise.rb +57 -0
  42. data/samples/external_library/java_processing/pbox2d/contact_test.rb +23 -0
  43. data/samples/external_library/java_processing/pbox2d/data/java_args.txt +2 -0
  44. data/samples/external_library/java_processing/pbox2d/library/custom_shape/custom_shape.rb +158 -0
  45. data/samples/external_library/java_processing/pbox2d/library/particle_system/particle_system.rb +212 -0
  46. data/samples/external_library/java_processing/pbox2d/library/surface/surface.rb +154 -0
  47. data/samples/external_library/java_processing/pbox2d/liquidy.rb +58 -0
  48. data/samples/external_library/java_processing/pbox2d/polygons.rb +58 -0
  49. data/samples/external_library/java_processing/toxiclibs/library/vbo/vbo.rb +52 -0
  50. data/samples/external_library/java_processing/toxiclibs/model_align.rb +9 -16
  51. data/samples/processing_app/basics/color/color_wheel.rb +1 -1
  52. data/samples/processing_app/basics/form/regular_polygon.rb +2 -2
  53. data/samples/processing_app/basics/form/rgb_cube.rb +2 -2
  54. data/samples/processing_app/basics/form/shape_primitives.rb +1 -1
  55. data/samples/processing_app/basics/form/star.rb +2 -2
  56. data/samples/processing_app/basics/input/clock.rb +21 -16
  57. data/samples/processing_app/basics/input/storing_input.rb +6 -6
  58. data/samples/processing_app/basics/math/additive_wave.rb +1 -1
  59. data/samples/processing_app/basics/math/sine.rb +2 -2
  60. data/samples/processing_app/basics/math/sine_cosine.rb +1 -1
  61. data/samples/processing_app/basics/math/sine_wave.rb +1 -1
  62. data/samples/processing_app/basics/objects/inheritance.rb +2 -0
  63. data/samples/processing_app/basics/objects/inheritance_two.rb +88 -0
  64. data/samples/processing_app/basics/objects/module.rb +89 -0
  65. data/samples/processing_app/{library/vecmath/drawolver.rb → basics/objects/module_two.rb} +1 -1
  66. data/samples/processing_app/basics/objects/multiple_constructors.rb +5 -0
  67. data/samples/processing_app/basics/objects/struct.rb +38 -0
  68. data/samples/processing_app/basics/structure/recursion2.rb +1 -1
  69. data/samples/processing_app/basics/transform/birds.rb +7 -10
  70. data/samples/processing_app/basics/transform/library/bird/bird.rb +3 -3
  71. data/samples/processing_app/basics/transform/rotate.rb +1 -1
  72. data/samples/processing_app/basics/transform/rotate1.rb +1 -1
  73. data/samples/processing_app/basics/transform/rotate_x_y.rb +1 -1
  74. data/samples/processing_app/demos/graphics/bezier_patch.rb +1 -38
  75. data/samples/processing_app/demos/graphics/trefoil.rb +50 -40
  76. data/samples/processing_app/demos/graphics/wiggling.rb +36 -38
  77. data/samples/processing_app/demos/performance/cubic_grid_retained.rb +14 -14
  78. data/samples/processing_app/demos/performance/esfera.rb +27 -39
  79. data/samples/processing_app/demos/performance/text_rendering.rb +1 -1
  80. data/samples/processing_app/library/fastmath/clock.rb +44 -0
  81. data/samples/processing_app/library/pdf/complex_3D.rb +26 -24
  82. data/samples/processing_app/library/vecmath/{Rakefile → arcball/Rakefile} +6 -6
  83. data/samples/processing_app/library/vecmath/arcball/arcball_box.rb +23 -0
  84. data/samples/processing_app/library/vecmath/arcball/arcball_radius.rb +23 -0
  85. data/samples/processing_app/library/vecmath/arcball/arcball_shape.rb +29 -0
  86. data/samples/processing_app/library/vecmath/{README.txt → vec2d/README.txt} +0 -0
  87. data/samples/processing_app/library/vecmath/vec2d/Rakefile +30 -0
  88. data/samples/processing_app/library/vecmath/{acceleration_with_vectors.rb → vec2d/acceleration_with_vectors.rb} +4 -5
  89. data/samples/processing_app/library/vecmath/{bouncing_ball.rb → vec2d/bouncing_ball.rb} +9 -15
  90. data/samples/processing_app/library/vecmath/{circle_collision.rb → vec2d/circle_collision.rb} +46 -51
  91. data/samples/processing_app/library/vecmath/{data → vec2d/data}/java_args.txt +0 -0
  92. data/samples/processing_app/library/vecmath/{data → vec2d/data}/sprite.png +0 -0
  93. data/samples/processing_app/library/vecmath/{data → vec2d/data}/texture.png +0 -0
  94. data/samples/processing_app/library/vecmath/{flocking.rb → vec2d/flocking.rb} +3 -6
  95. data/samples/processing_app/library/vecmath/{library → vec2d/library}/flock/flock.rb +47 -67
  96. data/samples/processing_app/library/vecmath/{library → vec2d/library}/particle/particle_system.rb +5 -5
  97. data/samples/processing_app/library/vecmath/vec2d/library/tile/tile.rb +85 -0
  98. data/samples/processing_app/library/vecmath/{morph.rb → vec2d/morph.rb} +17 -16
  99. data/samples/processing_app/library/vecmath/{multiple_particle_systems.rb → vec2d/multiple_particle_systems.rb} +11 -28
  100. data/samples/processing_app/library/vecmath/{particle_system_pshape.rb → vec2d/particle_system_pshape.rb} +4 -6
  101. data/samples/processing_app/library/vecmath/vec2d/penrose.rb +71 -0
  102. data/samples/processing_app/library/vecmath/{reflection1.rb → vec2d/reflection1.rb} +6 -6
  103. data/samples/processing_app/library/vecmath/{seeking_neural.rb → vec2d/seeking_neural.rb} +12 -16
  104. data/samples/processing_app/library/vecmath/{simple_particle_system.rb → vec2d/simple_particle_system.rb} +8 -12
  105. data/samples/processing_app/library/vecmath/{smoke_particle_system.rb → vec2d/smoke_particle_system.rb} +8 -13
  106. data/samples/processing_app/library/vecmath/{vector_math.rb → vec2d/vector_math.rb} +0 -0
  107. data/samples/processing_app/library/vecmath/{library/wiggler/wiggler.rb → vec2d/wiggle_pshape.rb} +28 -4
  108. data/samples/processing_app/library/vecmath/vec3d/Rakefile +30 -0
  109. data/samples/processing_app/library/vecmath/vec3d/drawolver.rb +86 -0
  110. data/samples/processing_app/library/vecmath/vec3d/frame_of_reference.rb +103 -0
  111. data/samples/processing_app/library/vecmath/{hilbert_fractal.rb → vec3d/hilbert_fractal.rb} +5 -33
  112. data/samples/processing_app/library/vecmath/vec3d/library/geometry/geometry.rb +3 -0
  113. data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/cylinder.rb +44 -0
  114. data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/mat4.rb +28 -0
  115. data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/plane.rb +60 -0
  116. data/samples/processing_app/library/vecmath/{library → vec3d/library}/hilbert/hilbert.rb +14 -17
  117. data/samples/processing_app/library/vecmath/{retained_menger.rb → vec3d/retained_menger.rb} +20 -55
  118. data/samples/processing_app/topics/advanced_data/Rakefile +6 -6
  119. data/samples/processing_app/topics/advanced_data/counting_words.rb +7 -7
  120. data/samples/processing_app/topics/advanced_data/data/data.xml +0 -15
  121. data/samples/processing_app/topics/advanced_data/data/struct_data.yml +5 -0
  122. data/samples/processing_app/topics/advanced_data/library/bubble/bubble.rb +8 -8
  123. data/samples/processing_app/topics/advanced_data/load_save_XML.rb +41 -42
  124. data/samples/processing_app/topics/advanced_data/load_save_json.rb +11 -11
  125. data/samples/processing_app/topics/advanced_data/load_save_struct_yaml.rb +22 -23
  126. data/samples/processing_app/topics/advanced_data/load_save_table.rb +12 -12
  127. data/samples/processing_app/topics/advanced_data/load_save_yaml.rb +10 -12
  128. data/samples/processing_app/topics/advanced_data/regex.rb +5 -6
  129. data/samples/processing_app/topics/advanced_data/threads.rb +27 -27
  130. data/samples/processing_app/topics/advanced_data/threads_two.rb +3 -2
  131. data/samples/processing_app/topics/advanced_data/word_frequency.rb +18 -16
  132. data/samples/processing_app/topics/advanced_data/yahoo_weather.rb +6 -5
  133. data/samples/processing_app/topics/animation/animated_sprite.rb +9 -7
  134. data/samples/processing_app/topics/animation/sequential.rb +19 -19
  135. data/samples/processing_app/topics/cellular_automata/library/ca/ca.rb +1 -1
  136. data/samples/processing_app/topics/cellular_automata/wolfram.rb +1 -1
  137. data/samples/processing_app/topics/create_shapes/begin_end_contour.rb +1 -1
  138. data/samples/processing_app/topics/create_shapes/library/wiggler/wiggler.rb +4 -4
  139. data/samples/processing_app/topics/create_shapes/particle_system_pshape.rb +2 -2
  140. data/samples/processing_app/topics/create_shapes/path_pshape.rb +1 -1
  141. data/samples/processing_app/topics/create_shapes/polygon_pshape_oo3.rb +1 -1
  142. data/samples/processing_app/topics/create_shapes/polygon_shape.rb +3 -3
  143. data/samples/processing_app/topics/file_io/load_file1.rb +1 -1
  144. data/samples/processing_app/topics/file_io/save_frames.rb +5 -5
  145. data/samples/processing_app/topics/file_io/save_one_image.rb +2 -2
  146. data/samples/processing_app/topics/file_io/tile_images.rb +1 -1
  147. data/samples/processing_app/topics/gui/scrollbar.rb +3 -3
  148. data/samples/processing_app/topics/image_processing/blending.rb +13 -13
  149. data/samples/processing_app/topics/image_processing/blur.rb +1 -1
  150. data/samples/processing_app/topics/image_processing/brightness.rb +1 -1
  151. data/samples/processing_app/topics/image_processing/convolution.rb +1 -1
  152. data/samples/processing_app/topics/image_processing/edge_detection.rb +4 -4
  153. data/samples/processing_app/topics/image_processing/explode.rb +1 -1
  154. data/samples/processing_app/topics/image_processing/extrusion.rb +1 -1
  155. data/samples/processing_app/topics/image_processing/histogram.rb +1 -1
  156. data/samples/processing_app/topics/image_processing/linear_image.rb +1 -1
  157. data/samples/processing_app/topics/image_processing/pixel_array.rb +1 -1
  158. data/samples/processing_app/topics/image_processing/zoom.rb +2 -2
  159. data/samples/processing_app/topics/lsystems/Rakefile +6 -6
  160. data/samples/processing_app/topics/lsystems/chequer.rb +4 -10
  161. data/samples/processing_app/topics/lsystems/csplant.rb +25 -25
  162. data/samples/processing_app/topics/lsystems/cstest.rb +9 -4
  163. data/samples/processing_app/topics/lsystems/david_tour.rb +14 -16
  164. data/samples/processing_app/topics/lsystems/koch.rb +8 -18
  165. data/samples/processing_app/topics/lsystems/library/cs_grammar/cs_grammar.rb +18 -24
  166. data/samples/processing_app/topics/lsystems/library/grammar/grammar.rb +7 -9
  167. data/samples/processing_app/topics/lsystems/library/koch/koch_fractal.rb +75 -94
  168. data/samples/processing_app/topics/lsystems/library/stochastic_grammar/stochastic_grammar.rb +11 -13
  169. data/samples/processing_app/topics/lsystems/mpeano.rb +29 -32
  170. data/samples/processing_app/topics/lsystems/peano.rb +19 -21
  171. data/samples/processing_app/topics/lsystems/penrose.rb +31 -37
  172. data/samples/processing_app/topics/lsystems/penrose_snowflake.rb +10 -15
  173. data/samples/processing_app/topics/lsystems/pentagonal.rb +20 -23
  174. data/samples/processing_app/topics/lsystems/snake_kolam.rb +13 -13
  175. data/samples/processing_app/topics/lsystems/stochastic_test.rb +25 -28
  176. data/samples/processing_app/topics/lsystems/three_d_tree.rb +25 -24
  177. data/samples/processing_app/topics/motion/bouncy_bubbles.rb +17 -17
  178. data/samples/processing_app/topics/motion/cubes_in_cube.rb +1 -3
  179. data/samples/processing_app/topics/motion/library/cube/cube.rb +2 -2
  180. data/samples/processing_app/topics/motion/reflection2.rb +1 -1
  181. data/samples/processing_app/topics/shaders/blur_filter.rb +3 -3
  182. data/samples/processing_app/topics/shaders/bw_shader.rb +3 -3
  183. data/samples/processing_app/topics/shaders/conway.rb +5 -5
  184. data/samples/processing_app/topics/shaders/deform.rb +5 -5
  185. data/samples/processing_app/topics/shaders/edge_detect.rb +3 -5
  186. data/samples/processing_app/topics/shaders/glossy_fish_eye.rb +15 -21
  187. data/samples/processing_app/topics/shaders/glsl_heightmap_noise.rb +21 -19
  188. data/samples/processing_app/topics/shaders/image_mask.rb +6 -6
  189. data/samples/processing_app/topics/shaders/landscape.rb +4 -4
  190. data/samples/processing_app/topics/shaders/monjori.rb +15 -15
  191. data/samples/processing_app/topics/shaders/nebula.rb +3 -3
  192. data/samples/processing_app/topics/shaders/sep_blur.rb +15 -15
  193. data/samples/processing_app/topics/shaders/toon_shading.rb +2 -2
  194. data/samples/processing_app/topics/simulate/chain.rb +16 -14
  195. data/samples/processing_app/topics/simulate/smoke_particle_system.rb +3 -3
  196. data/samples/processing_app/topics/vectors/acceleration_with_vectors.rb +3 -2
  197. data/samples/processing_app/topics/vectors/bouncing_ball.rb +1 -0
  198. data/samples/processing_app/topics/vectors/vector_math.rb +2 -1
  199. data/vendors/Rakefile +15 -3
  200. metadata +99 -86
  201. data/.gitignore +0 -13
  202. data/.travis.yml +0 -6
  203. data/.yardopts +0 -5
  204. data/CHANGELOG +0 -316
  205. data/CONTRIBUTING.md +0 -35
  206. data/Gemfile +0 -6
  207. data/LICENSE.md +0 -39
  208. data/README.md +0 -119
  209. data/Rakefile +0 -37
  210. data/bin/install_jruby_complete +0 -13
  211. data/lib/ruby-processing/exporters/exporters.rb +0 -7
  212. data/library/vecmath/lib/arcball.rb +0 -64
  213. data/library/vecmath/lib/quaternion.rb +0 -62
  214. data/library/vecmath/lib/vec.rb +0 -232
  215. data/ruby-processing.gemspec +0 -54
  216. data/samples/processing_app/library/pdf/.gitignore +0 -1
  217. data/samples/processing_app/library/vecmath/retained_test.rb +0 -65
  218. data/samples/processing_app/library/vecmath/retained_test2.rb +0 -65
  219. data/samples/processing_app/library/vecmath/wiggle_pshape.rb +0 -22
  220. data/test/README.md +0 -6
  221. data/test/basic.rb +0 -14
  222. data/test/draw_ex.rb +0 -12
  223. data/test/graphics.rb +0 -7
  224. data/test/p2d.rb +0 -14
  225. data/test/p3d.rb +0 -14
  226. data/test/rp5_test.rb +0 -86
  227. data/test/setup_ex.rb +0 -12
@@ -9,13 +9,13 @@ attr_reader :ps, :img, :wind
9
9
 
10
10
  def setup
11
11
  size(640,360)
12
- @img = load_image("texture.png")
12
+ @img = load_image('texture.png')
13
13
  @ps = ParticleSystem.new(0, Vec2D.new(width/2, height - 60), img)
14
14
  end
15
15
 
16
16
  def draw
17
17
  background(0)
18
- # Calculate a "wind" force based on mouse horizontal position
18
+ # Calculate a 'wind' force based on mouse horizontal position
19
19
  dx = map(mouse_x, 0, width, -0.2, 0.2)
20
20
  @wind = Vec2D.new(dx, 0)
21
21
  ps.apply_force(wind)
@@ -103,7 +103,7 @@ class Particle
103
103
  vx = random_gaussian * 0.3
104
104
  vy = random_gaussian * 0.3 - 1.0
105
105
  @vel = Vec2D.new(vx, vy)
106
- @loc = l.dup()
106
+ @loc = l.dup
107
107
  @lifespan = 100.0
108
108
  @img = img_
109
109
  end
@@ -3,11 +3,12 @@
3
3
  # by Daniel Shiffman.
4
4
  #
5
5
  # Demonstration of the basics of motion with vector.
6
- # A "Mover" object stores location, velocity, and acceleration as vectors
6
+ # A 'Mover' object stores location, velocity, and acceleration as vectors
7
7
  # The motion is controlled by affecting the acceleration (in this case towards the mouse)
8
8
  #
9
9
  # For more examples of simulating motion and physics with vectors, see
10
10
  # Simulate/ForcesWithVectors, Simulate/GravitationalAttraction3D
11
+ # See library/vecmath for Vec2D examples
11
12
  #
12
13
 
13
14
  # A Mover object
@@ -32,7 +33,7 @@ end
32
33
  # by Daniel Shiffman.
33
34
  #
34
35
  # Demonstration of the basics of motion with vector.
35
- # A "Mover" object stores location, velocity, and acceleration as vectors
36
+ # A 'Mover' object stores location, velocity, and acceleration as vectors
36
37
  # The motion is controlled by affecting the acceleration (in this case towards the mouse)
37
38
  #
38
39
 
@@ -5,6 +5,7 @@
5
5
  # Demonstration of using vectors to control motion of body
6
6
  # This example is not object-oriented
7
7
  # See AccelerationWithVectors for an example of how to simulate motion using vectors in an object
8
+ # See library/vecmath for more ruby like Vec2D and Vec3D examples
8
9
  #
9
10
 
10
11
  attr_reader :location, # Location of shape
@@ -3,7 +3,8 @@
3
3
  # by Daniel Shiffman.
4
4
  #
5
5
  # Demonstration some basic vector math: subtraction, normalization, scaling
6
- # Normalizing a vector sets its length to 1.
6
+ # Normalizing a vector sets its length to 1. See library/vecmath for example
7
+ # using the more ruby like Vec2D class instead of PVector
7
8
  #
8
9
 
9
10
  def setup
@@ -1,6 +1,14 @@
1
1
  require 'rake/clean'
2
2
 
3
- JRUBY_VERSION = "1.7.12"
3
+ WARNING = <<-EOS
4
+ WARNING: you may not have wget installed, you could just download
5
+ the correct version of jruby-complete to the vendors folder, and
6
+ re-run k9 setup install instead of installing wget. Some systems
7
+ may also require 'sudo' access to install, NB: this is untested....
8
+
9
+ EOS
10
+
11
+ JRUBY_VERSION = "1.7.13"
4
12
 
5
13
  CLOBBER.include("jruby-complete-#{JRUBY_VERSION}.jar")
6
14
 
@@ -11,8 +19,12 @@ desc "download JRuby upstream sources"
11
19
  task :download => ["jruby-complete-#{JRUBY_VERSION}.jar"]
12
20
 
13
21
  file "jruby-complete-#{JRUBY_VERSION}.jar" do
14
- sh "wget http://jruby.org.s3.amazonaws.com/downloads/#{JRUBY_VERSION}/jruby-complete-#{JRUBY_VERSION}.jar"
15
- check_sha1("jruby-complete-#{JRUBY_VERSION}.jar", "a63380de1a30534184ae52c419a67a7ea43f45d3")
22
+ begin
23
+ sh "wget http://jruby.org.s3.amazonaws.com/downloads/#{JRUBY_VERSION}/jruby-complete-#{JRUBY_VERSION}.jar"
24
+ check_sha1("jruby-complete-#{JRUBY_VERSION}.jar", "0dfca68810a5eed7f12ae2007dc2cc47554b4cc6")
25
+ rescue
26
+ warn(WARNING)
27
+ end
16
28
  end
17
29
 
18
30
  directory "../lib/ruby"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-processing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas
@@ -18,7 +18,7 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2014-04-15 00:00:00.000000000 Z
21
+ date: 2014-07-28 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: bundler
@@ -40,65 +40,77 @@ dependencies:
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: '10.0'
43
+ version: '10.3'
44
44
  type: :development
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - "~>"
49
49
  - !ruby/object:Gem::Version
50
- version: '10.0'
50
+ version: '10.3'
51
+ - !ruby/object:Gem::Dependency
52
+ name: rake-compiler
53
+ requirement: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '0.9'
58
+ type: :development
59
+ prerelease: false
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - "~>"
63
+ - !ruby/object:Gem::Version
64
+ version: '0.9'
51
65
  - !ruby/object:Gem::Dependency
52
66
  name: minitest
53
67
  requirement: !ruby/object:Gem::Requirement
54
68
  requirements:
55
69
  - - "~>"
56
70
  - !ruby/object:Gem::Version
57
- version: '5.1'
71
+ version: '5.3'
58
72
  type: :development
59
73
  prerelease: false
60
74
  version_requirements: !ruby/object:Gem::Requirement
61
75
  requirements:
62
76
  - - "~>"
63
77
  - !ruby/object:Gem::Version
64
- version: '5.1'
65
- description: "\n Ruby-Processing is a Ruby wrapper for the Processing code art framework.
66
- It's\n this thin little shim that squeezes between Processing and JRuby, passing\n
67
- \ along some neat goodies like:\n\n * Application exporting of your sketches. Hand
68
- them out to your party guests, \n ready-to-run.\n\n * Live Coding via JRuby's
69
- IRB. Loads in your sketch so you can futz with\n variables and remake methods
70
- on the fly.\n\n * Bare sketches. Write your Ruby-Processing sketches without having
71
- to define\n a class. Without defining methods, even.\n\n * A \"Control Panel\"
72
- library, so that you can easily create sliders, buttons,\n checkboxes and drop-down
73
- menus, and hook them into your sketch's instance\n variables.\n\n * \"Watch\"
74
- mode, where Ruby-Processing keeps an eye on your sketch and reloads\n it from
75
- scratch every time you make a change. A pretty nice REPL-ish way\n to work on
76
- your Processing sketches.\n\n"
78
+ version: '5.3'
79
+ description: |2+
80
+
81
+ Ruby-Processing is a Ruby wrapper for the Processing code art framework. It's
82
+ this thin little shim that squeezes between Processing and JRuby, passing
83
+ along some neat goodies like:
84
+
85
+ * Application exporting of your sketches. Hand them out to your party guests,
86
+ ready-to-run.
87
+
88
+ * A "Control Panel" library, so that you can easily create sliders, buttons,
89
+ checkboxes and drop-down menus, and hook them into your sketch's instance
90
+ variables.
91
+
92
+ * "Watch" mode, where Ruby-Processing keeps an eye on your sketch and reloads
93
+ it from scratch every time you make a change. A pretty nice REPL-ish way
94
+ to work on your Processing sketches.
95
+
96
+ * Use ruby-gems and or java-libraries to access some pretty cool stuff...
97
+
98
+ * Hundreds of worked examples are included to get you started
99
+
77
100
  email: jeremy@ashkenas.com
78
101
  executables:
79
- - install_jruby_complete
80
102
  - rp5
81
103
  extensions: []
82
104
  extra_rdoc_files: []
83
105
  files:
84
- - ".gitignore"
85
- - ".travis.yml"
86
- - ".yardopts"
87
- - CHANGELOG
88
- - CONTRIBUTING.md
89
- - Gemfile
90
- - LICENSE.md
91
- - README.md
92
- - Rakefile
93
- - bin/install_jruby_complete
94
106
  - bin/rp5
107
+ - lib/rpextras.jar
95
108
  - lib/ruby-processing.rb
96
109
  - lib/ruby-processing/app.rb
97
110
  - lib/ruby-processing/config.rb
98
111
  - lib/ruby-processing/exporters/application_exporter.rb
99
112
  - lib/ruby-processing/exporters/base_exporter.rb
100
113
  - lib/ruby-processing/exporters/creator.rb
101
- - lib/ruby-processing/exporters/exporters.rb
102
114
  - lib/ruby-processing/helper_methods.rb
103
115
  - lib/ruby-processing/helpers/numeric.rb
104
116
  - lib/ruby-processing/helpers/string.rb
@@ -122,13 +134,11 @@ files:
122
134
  - lib/templates/create/p3d_sketch.rb.erb
123
135
  - library/boids/boids.rb
124
136
  - library/control_panel/control_panel.rb
137
+ - library/fastmath/fastmath.rb
125
138
  - library/file_chooser/file_chooser.rb
126
- - library/vecmath/lib/arcball.rb
127
- - library/vecmath/lib/quaternion.rb
128
- - library/vecmath/lib/vec.rb
129
139
  - library/vecmath/vecmath.rb
130
- - ruby-processing.gemspec
131
140
  - samples/Rakefile
141
+ - samples/configRP5/configRP5.pde
132
142
  - samples/contributed/Rakefile
133
143
  - samples/contributed/animator.rb
134
144
  - samples/contributed/bezier_playground.rb
@@ -187,21 +197,27 @@ files:
187
197
  - samples/external_library/java_processing/grafica/oktoberfest_example.rb
188
198
  - samples/external_library/java_processing/hemesh/data/java_args.txt
189
199
  - samples/external_library/java_processing/hemesh/library/vbo/mesh_to_vbo.rb
190
- - samples/external_library/java_processing/hemesh/library/vbo/mesh_to_vbo.rb~
191
200
  - samples/external_library/java_processing/hemesh/twin_iso.rb
192
- - samples/external_library/java_processing/hemesh/twin_iso.rb~
201
+ - samples/external_library/java_processing/pbox2d/bumpy_surface_noise.rb
202
+ - samples/external_library/java_processing/pbox2d/contact_test.rb
203
+ - samples/external_library/java_processing/pbox2d/data/java_args.txt
204
+ - samples/external_library/java_processing/pbox2d/library/custom_shape/custom_shape.rb
205
+ - samples/external_library/java_processing/pbox2d/library/particle_system/particle_system.rb
206
+ - samples/external_library/java_processing/pbox2d/library/surface/surface.rb
207
+ - samples/external_library/java_processing/pbox2d/liquidy.rb
208
+ - samples/external_library/java_processing/pbox2d/polygons.rb
193
209
  - samples/external_library/java_processing/peasy_cam/hello_peasy.rb
194
210
  - samples/external_library/java_processing/peasy_cam/hilbert_fractal.rb
195
211
  - samples/external_library/java_processing/peasy_cam/library/hilbert/hilbert.rb
196
212
  - samples/external_library/java_processing/proscene/cad_camera.rb
197
213
  - samples/external_library/java_processing/proscene/camera_customization.rb
198
- - samples/external_library/java_processing/proscene/camera_customization.rb~
199
214
  - samples/external_library/java_processing/proscene/data/ti_yong.png
200
215
  - samples/external_library/java_processing/toxiclibs/data/ti_yong.png
201
216
  - samples/external_library/java_processing/toxiclibs/gray_scott_image.rb
202
217
  - samples/external_library/java_processing/toxiclibs/gray_scott_tone_map.rb
203
218
  - samples/external_library/java_processing/toxiclibs/implicit.rb
204
219
  - samples/external_library/java_processing/toxiclibs/library/vbo/mesh_to_vbo.rb
220
+ - samples/external_library/java_processing/toxiclibs/library/vbo/vbo.rb
205
221
  - samples/external_library/java_processing/toxiclibs/model_align.rb
206
222
  - samples/external_library/ruby_gem/README
207
223
  - samples/external_library/ruby_gem/data/README.txt
@@ -313,8 +329,12 @@ files:
313
329
  - samples/processing_app/basics/math/sine_wave.rb
314
330
  - samples/processing_app/basics/objects/composite_objects.rb
315
331
  - samples/processing_app/basics/objects/inheritance.rb
332
+ - samples/processing_app/basics/objects/inheritance_two.rb
333
+ - samples/processing_app/basics/objects/module.rb
334
+ - samples/processing_app/basics/objects/module_two.rb
316
335
  - samples/processing_app/basics/objects/multiple_constructors.rb
317
336
  - samples/processing_app/basics/objects/objects.rb
337
+ - samples/processing_app/basics/objects/struct.rb
318
338
  - samples/processing_app/basics/shape/data/bot1.svg
319
339
  - samples/processing_app/basics/shape/data/rocket.mtl
320
340
  - samples/processing_app/basics/shape/data/rocket.obj
@@ -387,6 +407,7 @@ files:
387
407
  - samples/processing_app/demos/tests/smooth_test.rb
388
408
  - samples/processing_app/demos/tests/specs_test.rb
389
409
  - samples/processing_app/library/dxf/simple_export.rb
410
+ - samples/processing_app/library/fastmath/clock.rb
390
411
  - samples/processing_app/library/file_chooser/image_viewer.rb
391
412
  - samples/processing_app/library/minim/filter_example.rb
392
413
  - samples/processing_app/library/minim/frequency_modulation.rb
@@ -401,40 +422,48 @@ files:
401
422
  - samples/processing_app/library/movie/scratch.rb
402
423
  - samples/processing_app/library/movie/speed.rb
403
424
  - samples/processing_app/library/net/HTTPClient.rb
404
- - samples/processing_app/library/pdf/.gitignore
405
425
  - samples/processing_app/library/pdf/complex_3D.rb
406
426
  - samples/processing_app/library/pdf/large_page.rb
407
427
  - samples/processing_app/library/pdf/many_frames.rb
408
428
  - samples/processing_app/library/pdf/many_pages.rb
409
429
  - samples/processing_app/library/pdf/many_pdfs.rb
410
430
  - samples/processing_app/library/pdf/one_frame.rb
411
- - samples/processing_app/library/vecmath/README.txt
412
- - samples/processing_app/library/vecmath/Rakefile
413
- - samples/processing_app/library/vecmath/acceleration_with_vectors.rb
414
- - samples/processing_app/library/vecmath/bouncing_ball.rb
415
- - samples/processing_app/library/vecmath/circle_collision.rb
416
- - samples/processing_app/library/vecmath/data/java_args.txt
417
- - samples/processing_app/library/vecmath/data/sprite.png
418
- - samples/processing_app/library/vecmath/data/texture.png
419
- - samples/processing_app/library/vecmath/drawolver.rb
420
- - samples/processing_app/library/vecmath/flocking.rb
421
- - samples/processing_app/library/vecmath/hilbert_fractal.rb
422
- - samples/processing_app/library/vecmath/library/flock/flock.rb
423
- - samples/processing_app/library/vecmath/library/hilbert/hilbert.rb
424
- - samples/processing_app/library/vecmath/library/particle/particle_system.rb
425
- - samples/processing_app/library/vecmath/library/wiggler/wiggler.rb
426
- - samples/processing_app/library/vecmath/morph.rb
427
- - samples/processing_app/library/vecmath/multiple_particle_systems.rb
428
- - samples/processing_app/library/vecmath/particle_system_pshape.rb
429
- - samples/processing_app/library/vecmath/reflection1.rb
430
- - samples/processing_app/library/vecmath/retained_menger.rb
431
- - samples/processing_app/library/vecmath/retained_test.rb
432
- - samples/processing_app/library/vecmath/retained_test2.rb
433
- - samples/processing_app/library/vecmath/seeking_neural.rb
434
- - samples/processing_app/library/vecmath/simple_particle_system.rb
435
- - samples/processing_app/library/vecmath/smoke_particle_system.rb
436
- - samples/processing_app/library/vecmath/vector_math.rb
437
- - samples/processing_app/library/vecmath/wiggle_pshape.rb
431
+ - samples/processing_app/library/vecmath/arcball/Rakefile
432
+ - samples/processing_app/library/vecmath/arcball/arcball_box.rb
433
+ - samples/processing_app/library/vecmath/arcball/arcball_radius.rb
434
+ - samples/processing_app/library/vecmath/arcball/arcball_shape.rb
435
+ - samples/processing_app/library/vecmath/vec2d/README.txt
436
+ - samples/processing_app/library/vecmath/vec2d/Rakefile
437
+ - samples/processing_app/library/vecmath/vec2d/acceleration_with_vectors.rb
438
+ - samples/processing_app/library/vecmath/vec2d/bouncing_ball.rb
439
+ - samples/processing_app/library/vecmath/vec2d/circle_collision.rb
440
+ - samples/processing_app/library/vecmath/vec2d/data/java_args.txt
441
+ - samples/processing_app/library/vecmath/vec2d/data/sprite.png
442
+ - samples/processing_app/library/vecmath/vec2d/data/texture.png
443
+ - samples/processing_app/library/vecmath/vec2d/flocking.rb
444
+ - samples/processing_app/library/vecmath/vec2d/library/flock/flock.rb
445
+ - samples/processing_app/library/vecmath/vec2d/library/particle/particle_system.rb
446
+ - samples/processing_app/library/vecmath/vec2d/library/tile/tile.rb
447
+ - samples/processing_app/library/vecmath/vec2d/morph.rb
448
+ - samples/processing_app/library/vecmath/vec2d/multiple_particle_systems.rb
449
+ - samples/processing_app/library/vecmath/vec2d/particle_system_pshape.rb
450
+ - samples/processing_app/library/vecmath/vec2d/penrose.rb
451
+ - samples/processing_app/library/vecmath/vec2d/reflection1.rb
452
+ - samples/processing_app/library/vecmath/vec2d/seeking_neural.rb
453
+ - samples/processing_app/library/vecmath/vec2d/simple_particle_system.rb
454
+ - samples/processing_app/library/vecmath/vec2d/smoke_particle_system.rb
455
+ - samples/processing_app/library/vecmath/vec2d/vector_math.rb
456
+ - samples/processing_app/library/vecmath/vec2d/wiggle_pshape.rb
457
+ - samples/processing_app/library/vecmath/vec3d/Rakefile
458
+ - samples/processing_app/library/vecmath/vec3d/drawolver.rb
459
+ - samples/processing_app/library/vecmath/vec3d/frame_of_reference.rb
460
+ - samples/processing_app/library/vecmath/vec3d/hilbert_fractal.rb
461
+ - samples/processing_app/library/vecmath/vec3d/library/geometry/geometry.rb
462
+ - samples/processing_app/library/vecmath/vec3d/library/geometry/lib/cylinder.rb
463
+ - samples/processing_app/library/vecmath/vec3d/library/geometry/lib/mat4.rb
464
+ - samples/processing_app/library/vecmath/vec3d/library/geometry/lib/plane.rb
465
+ - samples/processing_app/library/vecmath/vec3d/library/hilbert/hilbert.rb
466
+ - samples/processing_app/library/vecmath/vec3d/retained_menger.rb
438
467
  - samples/processing_app/topics/advanced_data/README
439
468
  - samples/processing_app/topics/advanced_data/Rakefile
440
469
  - samples/processing_app/topics/advanced_data/counting_words.rb
@@ -836,20 +865,13 @@ files:
836
865
  - samples/processing_app/topics/vectors/acceleration_with_vectors.rb
837
866
  - samples/processing_app/topics/vectors/bouncing_ball.rb
838
867
  - samples/processing_app/topics/vectors/vector_math.rb
839
- - test/README.md
840
- - test/basic.rb
841
- - test/draw_ex.rb
842
- - test/graphics.rb
843
- - test/p2d.rb
844
- - test/p3d.rb
845
- - test/rp5_test.rb
846
- - test/setup_ex.rb
847
868
  - vendors/Rakefile
848
869
  homepage: http://wiki.github.com/jashkenas/ruby-processing
849
870
  licenses:
850
871
  - MIT
851
872
  metadata: {}
852
- post_install_message:
873
+ post_install_message: Use 'rp5 setup install' to install jruby-complete, and 'rp5
874
+ setup check' to check config.
853
875
  rdoc_options: []
854
876
  require_paths:
855
877
  - lib
@@ -865,20 +887,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
865
887
  version: '0'
866
888
  requirements:
867
889
  - A decent graphics card
868
- - java runtime >= 1.6+
869
- - processing = 2.0.3+
890
+ - java runtime >= 1.7+
891
+ - processing = 2.2.1+
870
892
  rubyforge_project:
871
893
  rubygems_version: 2.2.2
872
894
  signing_key:
873
895
  specification_version: 4
874
896
  summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.
875
- test_files:
876
- - test/README.md
877
- - test/basic.rb
878
- - test/draw_ex.rb
879
- - test/graphics.rb
880
- - test/p2d.rb
881
- - test/p3d.rb
882
- - test/rp5_test.rb
883
- - test/setup_ex.rb
884
- has_rdoc:
897
+ test_files: []
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- syntax: glob
2
- .DS_Store
3
- *.sw*
4
- *~
5
- *.pdf
6
- *.gem
7
- *.tgz
8
- *.jar
9
- *.zip
10
- samples/processing_app/topics/file_io/output/*.png
11
- Gemfile.lock
12
- .ruby-version
13
- .jrubyrc
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - jruby-19mode
5
-
6
-
data/.yardopts DELETED
@@ -1,5 +0,0 @@
1
- --markup markdown
2
- -
3
- CONTRIBUTING.md
4
- LICENSE.md
5
- README.md
data/CHANGELOG DELETED
@@ -1,316 +0,0 @@
1
- v2.4.4 Update to JRuby-1.7.12
2
- * Enhancement to Vec2D & Vec3D (preferred to PVector as
3
- * providing a more ruby-like interface), now provide a
4
- * conditional set_mag method, via optional &block.
5
-
6
- v2.4.3 Update to JRuby-1.7.11
7
- * Added an autorun demo Rakefile to some sample directories
8
- * Support utf-8 in sketches
9
- * Refactor and extend vecmath (updated drawolver to use Vec3D)
10
-
11
- v2.4.2 Update to JRuby-1.7.10
12
- * Revised suggestions for PROCESSING_ROOT on MacOSX
13
-
14
- v2.4.1 First release to return to rubygems since processing 1.0.11
15
- * Features a post-install download of jruby-complete (version 1.7.9)
16
- * Features use of jars from an installed version of vanilla processing,
17
- * on linux and windows use version 2.1.0 (later versions may also work).
18
- * For Mac, especially if you are using Mac "java" stick with version 2.0.3
19
- * Update gemspec to match modern expectations
20
-
21
- v2.4.0 Returning to rubygems distribution, by not including any jars
22
- * Use jars from an installed version of vanilla processing-2.0.3 (or version 2.1.0 linux and windows)
23
- * Require an installed jruby (with an optional jruby-complete-1.7.8 post
24
- * install)
25
-
26
- v2.3.1 Revert to processing-2.0.3 for MacOSX
27
- * Mac users may use Apple jvm java 6
28
- * Windows and Linux users need at least java 7 jre (java 8 does now work)
29
-
30
- v2.2.2 Update to JRuby-1.7.6
31
- * Merge vec.rb, quaternion.rb and arcball.rb into vecmath.rb, stricter path
32
- # requires ruby filename to match that of library
33
-
34
- v2.2.1 Replacing 'arcball' library with 'vecmath' library
35
- * Arcball functionality is retained (in vecmath library), Vec2D and Vec3D
36
- * have been added to 'vecmath' library, they provide a pure ruby alternative
37
- * to processings PVector class, and hence a more ruby like interface
38
-
39
-
40
- v2.2.0 Update to JRuby-1.7.5
41
- * Changed app.rb to only java_import used, core classes thus when mode JAVA2D
42
- * ie default mode do not java_import opengl classes, removed event classes
43
- * since we failed to address the directly
44
-
45
- v2.1.6 In anticipation of JRuby-1.7.5
46
- * Minor release to crystalize changes before JRuby-1.7.5
47
- * Rakefile tries to detect Windows OS & warn possibly missing 'wget'
48
- * Rubified and expanded Shiffmans advanced data examples
49
-
50
- v2.1.5 Update to processing-2.0.3
51
- * Minor changes to control_panel
52
- * Introducing file_chooser, deprecate select_input
53
- * Added display_width and display_height aliases
54
-
55
- v2.1.4 Improved build file
56
- * Build corrected to work on systems with directories containing spaces/etc
57
- * Control panel extra feature to allow setting of look and feel
58
-
59
- v2.1.3 Update to processing-2.0.2
60
- * Minor update to samples
61
-
62
- v2.1.2 Moved JRuby-Complete.jar (avoids classpath conflict)
63
- * Change to using external jruby as default, introduce --nojruby
64
- * flag to use provided jruby-complete
65
- * Tests revised to be more compatible with minitest ethos (capture_io)
66
-
67
- v2.1.1 Added Gemfile
68
- * Support bundler usage
69
-
70
- v2.1.0 gc-pruned ruby-processing-2.0
71
- * Since BFG tool was used for archive pruning
72
- * This repo is not compatible with forks of jashkenas prior to this release
73
-
74
- v2.0.1 First minor revision for ruby-processing-2.0
75
- * Changes for application export on Windows and linux
76
- * Added support for 'require_relative' on export
77
-
78
- v2.0.0 A major revision, now based on processing-2.0 and JRuby 1.7+
79
- * Processing updated to processing-2.0.1 export to applet has disappeared, also P3D is
80
- * the new OPENGL (except Jogl2 instead of Jogl1.1) if you've got an old graphics card or even some new netbook
81
- * with onboard graphics you may have issues
82
- * http://forum.processing.org/one/topic/processing-2-0-won-t-run-on-netbooks-and-older-cheaper-hardware.
83
- * Processing-2.0 has its own event system (replacing java.awt.event), ruby-processing sketches will normally
84
- * use this event system.
85
- * JRuby upgraded to 1.7.4 (default is ruby 1.9 and 2.0 is possible with a switch)
86
- * NB: bare sketches replace class wrapped sketches see samples...
87
- * Samples have been extended to include vanilla processing library examples.
88
- * References to the 'online' variable have been removed (deprecated in processing-2.0 slated for removal)
89
- * test suite now uses MiniTest some old tests have been remove. Others that probably will fail anyway, are
90
- * temporarily marked as skip.
91
- * Samples now rely on ruby 1.9 (almost 2.0) and processing-2.0
92
- * Where possible examples have been 'fixed' to run with new version (backward compability is not possible)
93
-
94
- v1.0.11 Fixing broken stuffs...
95
- * JRuby upgraded to 1.6.5
96
- * applet export fixed
97
- * application export fixed
98
-
99
- v1.0.10 Solidifying before Processing 2.0 ...
100
- * JRuby upgraded to 1.6.4
101
- * Processing upgraded to 1.5.1
102
- * load_library now works for Ruby and Java libraries present in the libraries Processing sketchbook
103
- * test suite created
104
- * removed ruby-processing specific hex() and shape() methods in favor of Processing ones
105
- * added some missing methods from Processing: println(), min(), max(), abs(), binary(), nf*(), etc...
106
- * watcher: watch for *.rb files inside sketch directory
107
- * linux opengl bugs fixed
108
- * samples/peasy_cam/hilbert_fractal example now allow the possibility of changing the fractal depth and to more correctly centre the fractal
109
- * added configuration file in $HOME/.rp5rc to configure java_args and sketchbook_path
110
-
111
- v1.0.9 The Yearly Update...
112
- * JRuby upgraded to 1.4.0 final.
113
- * Fix to allow arguments to be passed to sketches.
114
- * Allow "shape" to be called with a block.
115
- * Added new examples, including Monkstone's 3D Anar library and Hilbert curve.
116
-
117
- v1.0.8 Polishing the Windows...
118
- * Windows Application exporting works again, merely by virtue of
119
- not cluttering up the classpath.
120
- * Safer Ruby Platform detection.
121
-
122
- v1.0.7 Stability...
123
- * Added preliminary support for embedding Ruby-Processing in the Processing
124
- IDE (see the ruby-processing-plugin project).
125
- * Added 'width' and 'height' as methods that should get proxied down
126
- to inner classes and classes that include the Processing::Proxy.
127
- * Fixed a padding bug that put tiny gray margins on Windows and Linux.
128
- * Updated JRuby to 1.2.0 final as well as the Processing libraries.
129
- * Got a little bit better at detecting full-screen support on Linux.
130
- * Fixed some applet and app exporting problems on Windows.
131
- * The Boids library had a speed limit fix that should make 'em less flighty.
132
- * Peter Krenn contributed a simple Pong example.
133
-
134
- v1.0.6 Inner Classes...
135
- * Java-style inner classes. Any inner class of a sketch will now have the
136
- Processing methods and constants proxied down for convenience.
137
- * Sketches with tiny sizes get displayed in a nicer fashion.
138
- * New Blue Logo: Ruby-Processing, literally.
139
- * Moumar contributed a patch for the control_panel library, allowing your
140
- sliders and buttons to have an initial value.
141
-
142
- v1.0.5 Spring Cleaning...
143
- * The "Learning Processing" examples are now a separate project, a
144
- long-merited change. They'll grow up on their own at
145
- http://github.com/jashkenas/learning-processing-with-ruby
146
- * The watcher is now a bit better about catching recoverable exceptions.
147
- * load_strings and save_strings methods have been added to Processing::App.
148
- * Fixing a permissions problem with applet/application exporting.
149
-
150
- v1.0.4 Bare is Beautiful...
151
- * Ruby-Processing now supports "bare" sketches, which are sketches that
152
- consist of only setup and draw methods, or sketches that contain no method
153
- definitions at all (implicitly wrapping them in a 'setup'). This works
154
- by pre-processing the code.
155
- * Initialization heavily tweaked so that size() works as in Processing,
156
- from within setup(), and so that you can call full_screen as a class method,
157
- in your class definition, to avoid the need for explicit sketch instantiation.
158
- * "rp5 create" has a "--bare" option.
159
- * Many samples now use the bare style, and more "Learning Processing" examples
160
- were contributed by Juris Galang.
161
-
162
- v1.0.3 Tweaks and Tuneups...
163
- * "rp5 watch" is now a bit more robust, and tries to reload every
164
- * file, global, and constant that it thinks it needs to.
165
- * Many, many examples have been contributed by Marc Chung,
166
- Peter Krenn, and Florian Jenett.
167
- * Andreas Haller contributed a patch that added Ruby-1.9 compatibility.
168
- * The render mode now defaults to JAVA2D, as does Processing.
169
- * "rp5 create" now informs you of the file it just created.
170
- * "key" now returns a character, if ASCII and the integer value otherwise,
171
- mirroring Processing's behavior.
172
- * Numbers now have the methods 'degrees' and 'radians', for ease.
173
-
174
- v1.0.2 Bugfixes and Java Args...
175
- * Application exporting, long plagued, should now be a little
176
- closer to rock-solid. If you need to pass command-line options
177
- to the JVM, add a java_args.txt file in your sketch's data
178
- folder that sets stack size, memory size, or whatever ails you.
179
-
180
- v1.0.1 Gemmin' it up.
181
- * The smallest version bump is the biggest change:
182
- Ruby-Processing has undergone a great refactor, kicked off by
183
- Peter Gassner's initial efforts to make a gem out of it. Now
184
- available as a real RubyGem.
185
-
186
- * Changes all around: The main interface to Ruby-Processing is now
187
- through the 'rp5' command. Try rp5 --help to get started.
188
-
189
- * has_slider has been superseded by control_panel, a more full-
190
- fledged library for controlling aspects of your sketch. Read
191
- how to use it on the wiki, or check out jwishy.rb
192
-
193
- v1.0. Ruby-Processing goes 1.0 with Processing 1.0
194
- * Processing updated to 1.0.1 (congrats to the Processing team),
195
- and JRuby updated to the latest trunk. Most sketches run a good
196
- bit faster now.
197
-
198
- * Ruby-Processing now comes with many default libraries: Boids, DXF,
199
- Javascript, Minim, Net, OpenGL, PDF, Serial, Slider, and Video
200
- are now included in the download.
201
-
202
- * has_slider moved out into an included ruby library.
203
-
204
- v0.9. Multi-platform Application export, live coding, and more.
205
- * Inspired by NodeBox, Ruby-Processing now sports the ability
206
- to have sliders control numeric variables in your sketches.
207
- If you're using an instance variable, say, @speed, to control
208
- the speed of your sketch.
209
-
210
- has_slider :speed
211
-
212
- Will bring up a panel alongside with a slider that controls
213
- the speed. It can take a range of values as an optional parameter.
214
- Check out and run jwishy.rb for an example.
215
-
216
- * Multi-platform app export! Exporting your Ruby-Processing
217
- apps will now create executable apps for Mac/Windows/Linux.
218
-
219
- * Live coding support. Now you can do script/live path/to/sketch.rb
220
- to open up an interactive session with your sketch available
221
- as $app.
222
-
223
- * Nick Sieger donated an additional sample.
224
-
225
- v0.8. Exporting Applications
226
- * Ruby-Processing can now export Mac applications! Running
227
- script/application my_sketch.rb will create MySketch.app,
228
- complete with all of its data and libraries. If you have
229
- a .icns file inside of your data folder, it will become
230
- the app's icon.
231
-
232
- * Added a mathematical Fern sample. It's a port of Luis
233
- Correia's java original, with algorithms from Wikipedia.
234
-
235
- * Sketches now have a library_loaded? method, so that you can
236
- check if a library has been started successfully, and
237
- conditionally enable things. (Good for OpenGL.)
238
-
239
- * The Boids library is now about 40% faster. It also comes with
240
- an example in library/boids/samples.
241
-
242
- * Specs have been started both for exporting and for Ruby-
243
- Processing itself.
244
-
245
- v0.7. Flocking Boids and OpenGL Applets
246
- * Thanks to MenTaLguY, once again, for work on the JRubyApplet, OpenGL
247
- is now a first-class citizen. If you're using OpenGL in your sketch,
248
- the applet exporter should just work. It has also been moved and
249
- renamed, so now you can use it like:
250
-
251
- script/applet my_sketch.rb
252
-
253
- * An app generator has been added for getting started. It'll give you
254
- a template for an empty Ruby-Processing sketch, with setup and draw
255
- methods and all that. Usage:
256
-
257
- script/generate my_sketch 800 600
258
-
259
- Will create a file called my_sketch.rb, with a title of "My Sketch",
260
- 800 pixels wide and 600 pixels tall. Width and height are optional.
261
-
262
- * Ruby-Processing now includes its first pure-Ruby library, a port
263
- of Tom de Smedt's "Boids", for algorithmic flocking.
264
-
265
- v0.6. Generating Applets
266
- * Now we're baking up some applet pie. The applet_tree script will
267
- take your Ruby-Processing sketch, export it as an applet, and
268
- generate an HTML page for you to post. It's way easier now than it
269
- would have been before. (thanks to MenTaLguY.) Use it like so:
270
-
271
- ./applet_tree my_sketch.rb
272
-
273
- But there are caveats: Applets don't work with native libraries, so
274
- no OpenGL. If you're requiring other files that aren't part of the
275
- standard Ruby distro, you'll need to include them as libraries, which
276
- means: Drop them in a folder inside of "library". Use
277
- load_ruby_library("folder_name") or load_java_library() to load 'em.
278
- These methods replace the previous load_library(). Ruby libs will
279
- load the .rb with the same name as the folder. Java libs will just
280
- load up all of the .jars in the folder.
281
-
282
- Demos — all of the standard samples are available as applets:
283
- http://fiercefrontiers.com/applets/jwishy/
284
- http://fiercefrontiers.com/applets/tree/
285
- http://fiercefrontiers.com/applets/circle_collision/
286
- http://fiercefrontiers.com/applets/reflection/
287
-
288
-
289
- v0.5. With Native Libraries
290
- * Ruby-Processing gets easy native library support. Now you can take
291
- Processing libraries, drop them in the library folder, and load them
292
- up like so (inside your sketch):
293
-
294
- load_library "opengl"
295
-
296
- It works by loading up all of the .jars in that folder, and setting
297
- the java.library.path to that folder, so that the native extensions
298
- can be found.
299
-
300
- * Full Screen OpenGL demo added, but you'll need to copy over the
301
- OpenGL library to use it.
302
-
303
- v0.4. Going Fullscreen
304
- * Ruby-Processing goes fullscreen. Just pass :full_screen => true
305
- into the options when you’re starting up your app. Like so:
306
-
307
- MyApp.new(:title => "MyApp", :full_screen => true)
308
-
309
- * Because Processing has just so many methods, you can now search
310
- through them: find_method "method_name"
311
-
312
- v0.3. First Real Release
313
- * Processing::App.current will give you a handle on the app. (Useful
314
- in jirb).
315
- * samples/jwishy.rb has some new hooks for live coding.
316
- * circle_collision and tree samples added (Joe Holt)