ruby-processing 2.6.3 → 2.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rpextras.jar +0 -0
- data/lib/ruby-processing/app.rb +56 -48
- data/lib/ruby-processing/helper_methods.rb +11 -12
- data/lib/ruby-processing/library_loader.rb +19 -10
- data/lib/ruby-processing/runner.rb +49 -36
- data/lib/ruby-processing/version.rb +1 -1
- data/lib/templates/application/run.erb +3 -0
- data/library/boids/boids.rb +36 -32
- data/vendors/Rakefile +36 -7
- metadata +3 -734
- data/samples/Rakefile +0 -21
- data/samples/configRP5/configRP5.pde +0 -147
- data/samples/contributed/Rakefile +0 -30
- data/samples/contributed/animator.rb +0 -48
- data/samples/contributed/bezier_playground.rb +0 -204
- data/samples/contributed/circle_collision.rb +0 -129
- data/samples/contributed/drawolver.rb +0 -96
- data/samples/contributed/elegant_ball.rb +0 -165
- data/samples/contributed/empathy.rb +0 -78
- data/samples/contributed/fern.rb +0 -51
- data/samples/contributed/fibonacci_sphere.rb +0 -86
- data/samples/contributed/flight_patterns.rb +0 -63
- data/samples/contributed/full_screen.rb +0 -29
- data/samples/contributed/getting_started.rb +0 -24
- data/samples/contributed/grapher.rb +0 -36
- data/samples/contributed/gravity.rb +0 -106
- data/samples/contributed/jwishy.rb +0 -95
- data/samples/contributed/mandelbrot.rb +0 -79
- data/samples/contributed/orbit.rb +0 -41
- data/samples/contributed/quadraticvertex.rb +0 -106
- data/samples/contributed/re_sample.rb +0 -27
- data/samples/contributed/reflection.rb +0 -17
- data/samples/contributed/tree.rb +0 -72
- data/samples/external_library/java_processing/README +0 -3
- data/samples/external_library/java_processing/box2d_processing/bumpy_surface_noise.rb +0 -52
- data/samples/external_library/java_processing/box2d_processing/data/java_args.txt +0 -2
- data/samples/external_library/java_processing/box2d_processing/library/custom_shape/custom_shape.rb +0 -158
- data/samples/external_library/java_processing/box2d_processing/library/particle_system/particle_system.rb +0 -209
- data/samples/external_library/java_processing/box2d_processing/library/surface/surface.rb +0 -154
- data/samples/external_library/java_processing/box2d_processing/liquidy.rb +0 -58
- data/samples/external_library/java_processing/box2d_processing/polygons.rb +0 -53
- data/samples/external_library/java_processing/custom/README.md +0 -16
- data/samples/external_library/java_processing/custom/Rakefile +0 -22
- data/samples/external_library/java_processing/custom/ext/nn/Connection.java +0 -47
- data/samples/external_library/java_processing/custom/ext/nn/HiddenNeuron.java +0 -20
- data/samples/external_library/java_processing/custom/ext/nn/InputNeuron.java +0 -23
- data/samples/external_library/java_processing/custom/ext/nn/Network.java +0 -136
- data/samples/external_library/java_processing/custom/ext/nn/Neuron.java +0 -79
- data/samples/external_library/java_processing/custom/ext/nn/OutputNeuron.java +0 -7
- data/samples/external_library/java_processing/custom/landscape.rb +0 -60
- data/samples/external_library/java_processing/custom/xor.rb +0 -88
- data/samples/external_library/java_processing/fisica/README +0 -1
- data/samples/external_library/java_processing/fisica/bubbles.rb +0 -80
- data/samples/external_library/java_processing/fisica/joints.rb +0 -112
- data/samples/external_library/java_processing/fisica/polygons.rb +0 -79
- data/samples/external_library/java_processing/fisica/raycast.rb +0 -61
- data/samples/external_library/java_processing/generative_design/mesh_example.rb +0 -25
- data/samples/external_library/java_processing/generative_design/node_spring_attractor.rb +0 -83
- data/samples/external_library/java_processing/generative_design/sub_class_example.rb +0 -44
- data/samples/external_library/java_processing/geomerative/data/FreeSans.ttf +0 -0
- data/samples/external_library/java_processing/geomerative/data/Toucan.svg +0 -43
- data/samples/external_library/java_processing/geomerative/hello_bot_ignore_styles.rb +0 -38
- data/samples/external_library/java_processing/geomerative/hello_world_rotate_firstletter.rb +0 -43
- data/samples/external_library/java_processing/geomerative/hola_mundo.rb +0 -37
- data/samples/external_library/java_processing/grafica/data/OktoberfestVSGermanElections.csv +0 -118
- data/samples/external_library/java_processing/grafica/default_plot.rb +0 -30
- data/samples/external_library/java_processing/grafica/multiple_panels.rb +0 -117
- data/samples/external_library/java_processing/grafica/oktoberfest_example.rb +0 -83
- data/samples/external_library/java_processing/guido/slider.rb +0 -54
- data/samples/external_library/java_processing/hemesh/data/java_args.txt +0 -2
- data/samples/external_library/java_processing/hemesh/library/vbo/mesh_to_vbo.rb +0 -43
- data/samples/external_library/java_processing/hemesh/twin_iso.rb +0 -69
- data/samples/external_library/java_processing/pbox2d/bumpy_surface_noise.rb +0 -57
- data/samples/external_library/java_processing/pbox2d/contact_test.rb +0 -23
- data/samples/external_library/java_processing/pbox2d/data/java_args.txt +0 -2
- data/samples/external_library/java_processing/pbox2d/library/custom_shape/custom_shape.rb +0 -158
- data/samples/external_library/java_processing/pbox2d/library/particle_system/particle_system.rb +0 -212
- data/samples/external_library/java_processing/pbox2d/library/surface/surface.rb +0 -154
- data/samples/external_library/java_processing/pbox2d/liquidy.rb +0 -58
- data/samples/external_library/java_processing/pbox2d/polygons.rb +0 -58
- data/samples/external_library/java_processing/peasy_cam/hello_peasy.rb +0 -29
- data/samples/external_library/java_processing/peasy_cam/hilbert_fractal.rb +0 -34
- data/samples/external_library/java_processing/peasy_cam/library/hilbert/hilbert.rb +0 -100
- data/samples/external_library/java_processing/proscene/cad_camera.rb +0 -57
- data/samples/external_library/java_processing/proscene/camera_customization.rb +0 -114
- data/samples/external_library/java_processing/proscene/data/ti_yong.png +0 -0
- data/samples/external_library/java_processing/toxiclibs/data/ti_yong.png +0 -0
- data/samples/external_library/java_processing/toxiclibs/gray_scott_image.rb +0 -79
- data/samples/external_library/java_processing/toxiclibs/gray_scott_tone_map.rb +0 -78
- data/samples/external_library/java_processing/toxiclibs/implicit.rb +0 -143
- data/samples/external_library/java_processing/toxiclibs/library/vbo/mesh_to_vbo.rb +0 -52
- data/samples/external_library/java_processing/toxiclibs/library/vbo/vbo.rb +0 -52
- data/samples/external_library/java_processing/toxiclibs/model_align.rb +0 -48
- data/samples/external_library/ruby_gem/README +0 -12
- data/samples/external_library/ruby_gem/data/README.txt +0 -1
- data/samples/external_library/ruby_gem/data/data.json +0 -8
- data/samples/external_library/ruby_gem/data/java_args.txt +0 -2
- data/samples/external_library/ruby_gem/draw_test.rb +0 -171
- data/samples/external_library/ruby_gem/game_of_life.rb +0 -127
- data/samples/external_library/ruby_gem/mdarray_test.rb +0 -28
- data/samples/processing_app/ABOUT +0 -3
- data/samples/processing_app/basics/arrays/array.rb +0 -35
- data/samples/processing_app/basics/arrays/array_2d.rb +0 -32
- data/samples/processing_app/basics/arrays/array_objects.rb +0 -62
- data/samples/processing_app/basics/camera/move_eye.rb +0 -24
- data/samples/processing_app/basics/camera/perspective.rb +0 -36
- data/samples/processing_app/basics/color/blend_color.rb +0 -17
- data/samples/processing_app/basics/color/brightness.rb +0 -24
- data/samples/processing_app/basics/color/color_wheel.rb +0 -90
- data/samples/processing_app/basics/color/creating.rb +0 -48
- data/samples/processing_app/basics/color/hue.rb +0 -23
- data/samples/processing_app/basics/color/linear_gradient.rb +0 -42
- data/samples/processing_app/basics/color/radial_gradient.rb +0 -44
- data/samples/processing_app/basics/color/reading/data/cait.jpg +0 -0
- data/samples/processing_app/basics/color/reading/reading.rb +0 -29
- data/samples/processing_app/basics/color/relativity.rb +0 -25
- data/samples/processing_app/basics/color/saturation.rb +0 -24
- data/samples/processing_app/basics/color/wave_gradient.rb +0 -34
- data/samples/processing_app/basics/control/conditionals1.rb +0 -27
- data/samples/processing_app/basics/control/conditionals2.rb +0 -39
- data/samples/processing_app/basics/control/embedded_iteration.rb +0 -34
- data/samples/processing_app/basics/control/iteration.rb +0 -50
- data/samples/processing_app/basics/control/logical_operators.rb +0 -56
- data/samples/processing_app/basics/data/characters_strings.rb +0 -50
- data/samples/processing_app/basics/data/datatype_conversion.rb +0 -41
- data/samples/processing_app/basics/data/integers_floats.rb +0 -28
- data/samples/processing_app/basics/data/true_false.rb +0 -31
- data/samples/processing_app/basics/data/variable_scope.rb +0 -74
- data/samples/processing_app/basics/data/variables.rb +0 -35
- data/samples/processing_app/basics/form/bezier.rb +0 -20
- data/samples/processing_app/basics/form/bezier_ellipse.rb +0 -99
- data/samples/processing_app/basics/form/brick_tower.rb +0 -89
- data/samples/processing_app/basics/form/cubic_grid.rb +0 -39
- data/samples/processing_app/basics/form/icosahedra.rb +0 -39
- data/samples/processing_app/basics/form/library/icosahedron/icosahedron.rb +0 -60
- data/samples/processing_app/basics/form/pie_chart.rb +0 -27
- data/samples/processing_app/basics/form/points_lines.rb +0 -32
- data/samples/processing_app/basics/form/primitives.rb +0 -28
- data/samples/processing_app/basics/form/regular_polygon.rb +0 -46
- data/samples/processing_app/basics/form/rgb_cube.rb +0 -68
- data/samples/processing_app/basics/form/shape_primitives.rb +0 -23
- data/samples/processing_app/basics/form/shape_transform.rb +0 -83
- data/samples/processing_app/basics/form/star.rb +0 -48
- data/samples/processing_app/basics/form/toroid.rb +0 -108
- data/samples/processing_app/basics/form/triangle_strip.rb +0 -39
- data/samples/processing_app/basics/form/vertices.rb +0 -47
- data/samples/processing_app/basics/image/alphamask.rb +0 -17
- data/samples/processing_app/basics/image/background_image.rb +0 -24
- data/samples/processing_app/basics/image/create_image.rb +0 -17
- data/samples/processing_app/basics/image/data/construct.jpg +0 -0
- data/samples/processing_app/basics/image/data/eames.jpg +0 -0
- data/samples/processing_app/basics/image/data/jelly.jpg +0 -0
- data/samples/processing_app/basics/image/data/mask.jpg +0 -0
- data/samples/processing_app/basics/image/data/milan_rubbish.jpg +0 -0
- data/samples/processing_app/basics/image/data/teddy.gif +0 -0
- data/samples/processing_app/basics/image/data/test.jpg +0 -0
- data/samples/processing_app/basics/image/data/wash.jpg +0 -0
- data/samples/processing_app/basics/image/data/ystone08.jpg +0 -0
- data/samples/processing_app/basics/image/extrusion.rb +0 -46
- data/samples/processing_app/basics/image/load_display_image.rb +0 -18
- data/samples/processing_app/basics/image/pointillism.rb +0 -24
- data/samples/processing_app/basics/image/request_image.rb +0 -62
- data/samples/processing_app/basics/image/sprite.rb +0 -32
- data/samples/processing_app/basics/image/transparency.rb +0 -21
- data/samples/processing_app/basics/image/zoom.rb +0 -59
- data/samples/processing_app/basics/input/clock.rb +0 -46
- data/samples/processing_app/basics/input/constrain.rb +0 -33
- data/samples/processing_app/basics/input/easing.rb +0 -31
- data/samples/processing_app/basics/input/keyboard.rb +0 -24
- data/samples/processing_app/basics/input/keyboard_functions.rb +0 -59
- data/samples/processing_app/basics/input/milliseconds.rb +0 -20
- data/samples/processing_app/basics/input/mouse_1d.rb +0 -27
- data/samples/processing_app/basics/input/mouse_2d.rb +0 -19
- data/samples/processing_app/basics/input/mouse_functions.rb +0 -68
- data/samples/processing_app/basics/input/mouse_press.rb +0 -15
- data/samples/processing_app/basics/input/mouse_signals.rb +0 -40
- data/samples/processing_app/basics/input/storing_input.rb +0 -38
- data/samples/processing_app/basics/lights/directional.rb +0 -37
- data/samples/processing_app/basics/lights/lights1.rb +0 -35
- data/samples/processing_app/basics/lights/lights2.rb +0 -38
- data/samples/processing_app/basics/lights/reflection.rb +0 -35
- data/samples/processing_app/basics/lights/spot.rb +0 -36
- data/samples/processing_app/basics/math/additive_wave.rb +0 -64
- data/samples/processing_app/basics/math/arctangent.rb +0 -44
- data/samples/processing_app/basics/math/distance1.rb +0 -53
- data/samples/processing_app/basics/math/distance2.rb +0 -22
- data/samples/processing_app/basics/math/double_random.rb +0 -31
- data/samples/processing_app/basics/math/graphing_2_d_equation.rb +0 -39
- data/samples/processing_app/basics/math/increment_decrement.rb +0 -54
- data/samples/processing_app/basics/math/interpolate.rb +0 -34
- data/samples/processing_app/basics/math/modulo.rb +0 -39
- data/samples/processing_app/basics/math/noise_1_d.rb +0 -21
- data/samples/processing_app/basics/math/noise_2_d.rb +0 -30
- data/samples/processing_app/basics/math/noise_3_d.rb +0 -30
- data/samples/processing_app/basics/math/noise_wave.rb +0 -41
- data/samples/processing_app/basics/math/operator_precedence.rb +0 -49
- data/samples/processing_app/basics/math/polar_to_cartesian.rb +0 -31
- data/samples/processing_app/basics/math/random.rb +0 -21
- data/samples/processing_app/basics/math/random_gaussian.rb +0 -23
- data/samples/processing_app/basics/math/sine.rb +0 -35
- data/samples/processing_app/basics/math/sine_cosine.rb +0 -48
- data/samples/processing_app/basics/math/sine_wave.rb +0 -43
- data/samples/processing_app/basics/objects/composite_objects.rb +0 -113
- data/samples/processing_app/basics/objects/inheritance.rb +0 -84
- data/samples/processing_app/basics/objects/inheritance_two.rb +0 -88
- data/samples/processing_app/basics/objects/module.rb +0 -89
- data/samples/processing_app/basics/objects/module_two.rb +0 -111
- data/samples/processing_app/basics/objects/multiple_constructors.rb +0 -58
- data/samples/processing_app/basics/objects/objects.rb +0 -57
- data/samples/processing_app/basics/objects/struct.rb +0 -38
- data/samples/processing_app/basics/shape/data/bot1.svg +0 -160
- data/samples/processing_app/basics/shape/data/rocket.mtl +0 -8
- data/samples/processing_app/basics/shape/data/rocket.obj +0 -1688
- data/samples/processing_app/basics/shape/data/rocket.png +0 -0
- data/samples/processing_app/basics/shape/data/usa-wikipedia.svg +0 -452
- data/samples/processing_app/basics/shape/disable_style.rb +0 -32
- data/samples/processing_app/basics/shape/get_child.rb +0 -40
- data/samples/processing_app/basics/shape/load_display_obj.rb +0 -25
- data/samples/processing_app/basics/shape/load_display_shape.rb +0 -20
- data/samples/processing_app/basics/shape/load_display_svg.rb +0 -22
- data/samples/processing_app/basics/shape/scale_shape.rb +0 -23
- data/samples/processing_app/basics/structure/coordinates.rb +0 -42
- data/samples/processing_app/basics/structure/create_graphics.rb +0 -29
- data/samples/processing_app/basics/structure/functions.rb +0 -29
- data/samples/processing_app/basics/structure/loop.rb +0 -30
- data/samples/processing_app/basics/structure/noloop.rb +0 -21
- data/samples/processing_app/basics/structure/recursion1.rb +0 -27
- data/samples/processing_app/basics/structure/recursion2.rb +0 -23
- data/samples/processing_app/basics/structure/redraw.rb +0 -25
- data/samples/processing_app/basics/structure/setup_draw.rb +0 -19
- data/samples/processing_app/basics/structure/statements_comments.rb +0 -26
- data/samples/processing_app/basics/structure/width_height.rb +0 -22
- data/samples/processing_app/basics/textures/data/berlin-1.jpg +0 -0
- data/samples/processing_app/basics/textures/texture1.rb +0 -28
- data/samples/processing_app/basics/textures/texture2.rb +0 -33
- data/samples/processing_app/basics/textures/texture3.rb +0 -44
- data/samples/processing_app/basics/textures/texture_cube.rb +0 -86
- data/samples/processing_app/basics/transform/arm.rb +0 -32
- data/samples/processing_app/basics/transform/bird.rb +0 -57
- data/samples/processing_app/basics/transform/birds.rb +0 -29
- data/samples/processing_app/basics/transform/cubes_in_cube.rb +0 -102
- data/samples/processing_app/basics/transform/library/bird/bird.rb +0 -87
- data/samples/processing_app/basics/transform/library/cube/cube.rb +0 -55
- data/samples/processing_app/basics/transform/rotate.rb +0 -34
- data/samples/processing_app/basics/transform/rotate1.rb +0 -27
- data/samples/processing_app/basics/transform/rotate_push_pop.rb +0 -35
- data/samples/processing_app/basics/transform/rotate_x_y.rb +0 -36
- data/samples/processing_app/basics/transform/scale.rb +0 -29
- data/samples/processing_app/basics/transform/translate.rb +0 -27
- data/samples/processing_app/basics/transform/triangle_flower.rb +0 -52
- data/samples/processing_app/basics/typography/data/CourierNew36.vlw +0 -0
- data/samples/processing_app/basics/typography/data/Univers45.vlw +0 -0
- data/samples/processing_app/basics/typography/data/Ziggurat-HTF-Black-32.vlw +0 -0
- data/samples/processing_app/basics/typography/kinetic_type.rb +0 -76
- data/samples/processing_app/basics/typography/letters.rb +0 -34
- data/samples/processing_app/basics/typography/words.rb +0 -36
- data/samples/processing_app/basics/web/embedded_links.rb +0 -52
- data/samples/processing_app/basics/web/loading_images.rb +0 -15
- data/samples/processing_app/demos/graphics/bezier_patch.rb +0 -177
- data/samples/processing_app/demos/graphics/data/frag.glsl +0 -30
- data/samples/processing_app/demos/graphics/data/java_args.txt +0 -2
- data/samples/processing_app/demos/graphics/data/mercury.jpg +0 -0
- data/samples/processing_app/demos/graphics/data/planet.jpg +0 -0
- data/samples/processing_app/demos/graphics/data/starfield.jpg +0 -0
- data/samples/processing_app/demos/graphics/data/sun.jpg +0 -0
- data/samples/processing_app/demos/graphics/data/vert.glsl +0 -31
- data/samples/processing_app/demos/graphics/low_level_gl.rb +0 -72
- data/samples/processing_app/demos/graphics/planets.rb +0 -51
- data/samples/processing_app/demos/graphics/trefoil.rb +0 -152
- data/samples/processing_app/demos/graphics/wiggling.rb +0 -287
- data/samples/processing_app/demos/performance/cubic_grid_retained.rb +0 -58
- data/samples/processing_app/demos/performance/data/java_args.txt +0 -1
- data/samples/processing_app/demos/performance/esfera.rb +0 -93
- data/samples/processing_app/demos/performance/text_rendering.rb +0 -14
- data/samples/processing_app/demos/tests/no_background_test.rb +0 -10
- data/samples/processing_app/demos/tests/offscreen_test.rb +0 -34
- data/samples/processing_app/demos/tests/redraw_test.rb +0 -14
- data/samples/processing_app/demos/tests/resize_test.rb +0 -10
- data/samples/processing_app/demos/tests/restart_test.rb +0 -22
- data/samples/processing_app/demos/tests/smooth_test.rb +0 -27
- data/samples/processing_app/demos/tests/specs_test.rb +0 -11
- data/samples/processing_app/library/dxf/simple_export.rb +0 -48
- data/samples/processing_app/library/fastmath/clock.rb +0 -46
- data/samples/processing_app/library/file_chooser/image_viewer.rb +0 -23
- data/samples/processing_app/library/minim/filter_example.rb +0 -65
- data/samples/processing_app/library/minim/frequency_modulation.rb +0 -64
- data/samples/processing_app/library/minim/sequence_sound.rb +0 -59
- data/samples/processing_app/library/minim/synthesize_sound.rb +0 -35
- data/samples/processing_app/library/movie/README +0 -1
- data/samples/processing_app/library/movie/data/transit.mkv +0 -0
- data/samples/processing_app/library/movie/data/transit.mov +0 -0
- data/samples/processing_app/library/movie/loop.rb +0 -24
- data/samples/processing_app/library/movie/pixelate.rb +0 -50
- data/samples/processing_app/library/movie/reverse.rb +0 -47
- data/samples/processing_app/library/movie/scratch.rb +0 -36
- data/samples/processing_app/library/movie/speed.rb +0 -33
- data/samples/processing_app/library/net/HTTPClient.rb +0 -33
- data/samples/processing_app/library/pdf/complex_3D.rb +0 -162
- data/samples/processing_app/library/pdf/large_page.rb +0 -25
- data/samples/processing_app/library/pdf/many_frames.rb +0 -33
- data/samples/processing_app/library/pdf/many_pages.rb +0 -31
- data/samples/processing_app/library/pdf/many_pdfs.rb +0 -37
- data/samples/processing_app/library/pdf/one_frame.rb +0 -19
- data/samples/processing_app/library/vecmath/arcball/Rakefile +0 -30
- data/samples/processing_app/library/vecmath/arcball/arcball_box.rb +0 -23
- data/samples/processing_app/library/vecmath/arcball/arcball_radius.rb +0 -23
- data/samples/processing_app/library/vecmath/arcball/arcball_shape.rb +0 -29
- data/samples/processing_app/library/vecmath/vec2d/README.txt +0 -2
- data/samples/processing_app/library/vecmath/vec2d/Rakefile +0 -30
- data/samples/processing_app/library/vecmath/vec2d/acceleration_with_vectors.rb +0 -74
- data/samples/processing_app/library/vecmath/vec2d/bouncing_ball.rb +0 -45
- data/samples/processing_app/library/vecmath/vec2d/circle_collision.rb +0 -169
- data/samples/processing_app/library/vecmath/vec2d/data/java_args.txt +0 -2
- data/samples/processing_app/library/vecmath/vec2d/data/sprite.png +0 -0
- data/samples/processing_app/library/vecmath/vec2d/data/texture.png +0 -0
- data/samples/processing_app/library/vecmath/vec2d/flocking.rb +0 -30
- data/samples/processing_app/library/vecmath/vec2d/library/flock/flock.rb +0 -191
- data/samples/processing_app/library/vecmath/vec2d/library/particle/particle.rb +0 -113
- data/samples/processing_app/library/vecmath/vec2d/library/tile/tile.rb +0 -85
- data/samples/processing_app/library/vecmath/vec2d/morph.rb +0 -87
- data/samples/processing_app/library/vecmath/vec2d/particle_system_pshape.rb +0 -36
- data/samples/processing_app/library/vecmath/vec2d/penrose.rb +0 -71
- data/samples/processing_app/library/vecmath/vec2d/reflection1.rb +0 -108
- data/samples/processing_app/library/vecmath/vec2d/seeking_neural.rb +0 -169
- data/samples/processing_app/library/vecmath/vec2d/simple_particle_system.rb +0 -85
- data/samples/processing_app/library/vecmath/vec2d/vector_math.rb +0 -39
- data/samples/processing_app/library/vecmath/vec2d/wiggle_pshape.rb +0 -74
- data/samples/processing_app/library/vecmath/vec3d/Rakefile +0 -30
- data/samples/processing_app/library/vecmath/vec3d/drawolver.rb +0 -86
- data/samples/processing_app/library/vecmath/vec3d/frame_of_reference.rb +0 -103
- data/samples/processing_app/library/vecmath/vec3d/hilbert_fractal.rb +0 -37
- data/samples/processing_app/library/vecmath/vec3d/library/geometry/geometry.rb +0 -3
- data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/cylinder.rb +0 -44
- data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/mat4.rb +0 -28
- data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/plane.rb +0 -60
- data/samples/processing_app/library/vecmath/vec3d/library/hilbert/hilbert.rb +0 -84
- data/samples/processing_app/library/vecmath/vec3d/note.txt +0 -1
- data/samples/processing_app/library/vecmath/vec3d/retained_menger.rb +0 -115
- data/samples/processing_app/topics/advanced_data/README +0 -1
- data/samples/processing_app/topics/advanced_data/Rakefile +0 -30
- data/samples/processing_app/topics/advanced_data/counting_words.rb +0 -79
- data/samples/processing_app/topics/advanced_data/data/Georgia.ttf +0 -0
- data/samples/processing_app/topics/advanced_data/data/Merriweather-Light.ttf +0 -0
- data/samples/processing_app/topics/advanced_data/data/a000 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a001 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a002 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a003 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a004 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a005 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a006 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a007 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a008 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a009 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a010 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a011 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a012 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a013 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a014 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a015 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a016 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a017 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a018 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a019 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a020 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a021 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a022 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a023 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a024 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a025 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a026 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a027 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a028 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a029 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a030 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a031 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a032 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a033 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a034 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a035 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a036 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a037 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a038 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a039 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a040 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a041 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a042 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a043 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a044 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a045 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a046 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a047 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a048 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a049 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a050 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a051 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a052 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a053 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a054 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a055 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a056 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a057 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a058 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a059 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a060 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a061 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a062 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a063 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a064 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a065 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a066 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a067 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a068 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a069 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a070 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a071 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a072 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a073 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a074 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a075 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a076 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a077 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a078 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a079 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a080 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a081 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a082 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a083 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a084 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a085 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a086 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a087 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a088 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a089 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a090 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a091 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a092 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a093 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a094 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a095 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a096 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a097 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a098 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a099 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a100 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a101 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a102 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a103 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a104 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a105 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a106 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a107 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a108 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a109 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a110 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a111 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a112 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a113 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a114 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a115 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/data.csv +0 -5
- data/samples/processing_app/topics/advanced_data/data/data.json +0 -36
- data/samples/processing_app/topics/advanced_data/data/data.xml +0 -23
- data/samples/processing_app/topics/advanced_data/data/data.yml +0 -22
- data/samples/processing_app/topics/advanced_data/data/dracula.txt +0 -16624
- data/samples/processing_app/topics/advanced_data/data/frankenstein.txt +0 -7652
- data/samples/processing_app/topics/advanced_data/data/struct_data.yml +0 -27
- data/samples/processing_app/topics/advanced_data/library/bubble/bubble.rb +0 -45
- data/samples/processing_app/topics/advanced_data/library/word/word.rb +0 -64
- data/samples/processing_app/topics/advanced_data/load_save_XML.rb +0 -113
- data/samples/processing_app/topics/advanced_data/load_save_json.rb +0 -93
- data/samples/processing_app/topics/advanced_data/load_save_struct_yaml.rb +0 -84
- data/samples/processing_app/topics/advanced_data/load_save_table.rb +0 -85
- data/samples/processing_app/topics/advanced_data/load_save_yaml.rb +0 -87
- data/samples/processing_app/topics/advanced_data/regex.rb +0 -46
- data/samples/processing_app/topics/advanced_data/threads.rb +0 -96
- data/samples/processing_app/topics/advanced_data/threads_two.rb +0 -52
- data/samples/processing_app/topics/advanced_data/word_frequency.rb +0 -80
- data/samples/processing_app/topics/advanced_data/yahoo_weather.rb +0 -39
- data/samples/processing_app/topics/animation/README.txt +0 -1
- data/samples/processing_app/topics/animation/animated_sprite.rb +0 -57
- data/samples/processing_app/topics/animation/data/PT_Shifty_0000.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0001.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0002.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0003.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0004.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0005.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0006.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0007.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0008.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0009.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0010.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0011.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0012.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0013.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0014.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0015.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0016.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0017.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0018.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0019.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0020.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0021.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0022.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0023.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0024.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0025.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0026.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0027.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0028.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0029.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0030.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0031.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0032.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0033.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0034.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0035.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0036.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0037.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0000.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0001.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0002.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0003.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0004.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0005.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0006.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0007.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0008.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0009.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0010.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0011.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0012.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0013.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0014.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0015.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0016.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0017.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0018.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0019.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0020.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0021.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0022.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0023.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0024.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0025.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0026.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0027.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0028.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0029.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0030.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0031.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0032.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0033.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0034.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0035.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0036.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0037.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0038.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0039.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0040.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0041.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0042.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0043.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0044.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0045.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0046.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0047.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0048.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0049.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0050.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0051.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0052.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0053.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0054.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0055.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0056.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0057.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0058.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0059.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0000.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0001.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0002.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0003.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0004.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0005.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0006.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0007.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0008.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0009.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0010.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0011.gif +0 -0
- data/samples/processing_app/topics/animation/sequential.rb +0 -41
- data/samples/processing_app/topics/cellular_automata/game_of_life.rb +0 -125
- data/samples/processing_app/topics/cellular_automata/library/ca/ca.rb +0 -91
- data/samples/processing_app/topics/cellular_automata/library/cell/cell.rb +0 -99
- data/samples/processing_app/topics/cellular_automata/library/simple_cell/simple_cell.rb +0 -46
- data/samples/processing_app/topics/cellular_automata/spore1.rb +0 -94
- data/samples/processing_app/topics/cellular_automata/spore2.rb +0 -101
- data/samples/processing_app/topics/cellular_automata/wolfram.rb +0 -42
- data/samples/processing_app/topics/create_shapes/begin_end_contour.rb +0 -44
- data/samples/processing_app/topics/create_shapes/data/sprite.png +0 -0
- data/samples/processing_app/topics/create_shapes/group_pshape.rb +0 -69
- data/samples/processing_app/topics/create_shapes/library/particle/particle_system.rb +0 -107
- data/samples/processing_app/topics/create_shapes/library/polygon/polygon.rb +0 -35
- data/samples/processing_app/topics/create_shapes/library/star/star.rb +0 -47
- data/samples/processing_app/topics/create_shapes/library/wiggler/wiggler.rb +0 -57
- data/samples/processing_app/topics/create_shapes/particle_system_pshape.rb +0 -38
- data/samples/processing_app/topics/create_shapes/path_pshape.rb +0 -38
- data/samples/processing_app/topics/create_shapes/polygon_pshape_oo3.rb +0 -56
- data/samples/processing_app/topics/create_shapes/polygon_pshape_oop.rb +0 -29
- data/samples/processing_app/topics/create_shapes/polygon_pshape_oop2.rb +0 -52
- data/samples/processing_app/topics/create_shapes/polygon_shape.rb +0 -42
- data/samples/processing_app/topics/create_shapes/primitive_pshape.rb +0 -29
- data/samples/processing_app/topics/create_shapes/wiggle_pshape.rb +0 -23
- data/samples/processing_app/topics/drawing/continuous_lines.rb +0 -17
- data/samples/processing_app/topics/drawing/pattern.rb +0 -30
- data/samples/processing_app/topics/drawing/pulses.rb +0 -33
- data/samples/processing_app/topics/drawing/scribble_plotter.rb +0 -77
- data/samples/processing_app/topics/effects/data/red_smoke.jpg +0 -0
- data/samples/processing_app/topics/effects/lens.rb +0 -94
- data/samples/processing_app/topics/file_io/data/positions.txt +0 -206
- data/samples/processing_app/topics/file_io/load_file1.rb +0 -32
- data/samples/processing_app/topics/file_io/save_frames.rb +0 -70
- data/samples/processing_app/topics/file_io/save_one_image.rb +0 -22
- data/samples/processing_app/topics/file_io/tile_images.rb +0 -37
- data/samples/processing_app/topics/gui/button.rb +0 -74
- data/samples/processing_app/topics/gui/data/seedBottom.jpg +0 -0
- data/samples/processing_app/topics/gui/data/seedTop.jpg +0 -0
- data/samples/processing_app/topics/gui/handles.rb +0 -108
- data/samples/processing_app/topics/gui/rollover.rb +0 -63
- data/samples/processing_app/topics/gui/scrollbar.rb +0 -91
- data/samples/processing_app/topics/image_processing/blending.rb +0 -82
- data/samples/processing_app/topics/image_processing/blur.rb +0 -50
- data/samples/processing_app/topics/image_processing/brightness.rb +0 -39
- data/samples/processing_app/topics/image_processing/convolution.rb +0 -72
- data/samples/processing_app/topics/image_processing/data/eames.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/frontier.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/java_args.txt +0 -3
- data/samples/processing_app/topics/image_processing/data/layer1.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/layer2.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/moon-wide.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/moon.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/sea.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/ystone08.jpg +0 -0
- data/samples/processing_app/topics/image_processing/edge_detection.rb +0 -47
- data/samples/processing_app/topics/image_processing/explode.rb +0 -35
- data/samples/processing_app/topics/image_processing/extrusion.rb +0 -49
- data/samples/processing_app/topics/image_processing/histogram.rb +0 -43
- data/samples/processing_app/topics/image_processing/linear_image.rb +0 -45
- data/samples/processing_app/topics/image_processing/pixel_array.rb +0 -48
- data/samples/processing_app/topics/image_processing/zoom.rb +0 -66
- data/samples/processing_app/topics/lsystems/Rakefile +0 -30
- data/samples/processing_app/topics/lsystems/chequer.rb +0 -66
- data/samples/processing_app/topics/lsystems/csplant.rb +0 -100
- data/samples/processing_app/topics/lsystems/cstest.rb +0 -25
- data/samples/processing_app/topics/lsystems/data/java_args.txt +0 -3
- data/samples/processing_app/topics/lsystems/david_tour.rb +0 -75
- data/samples/processing_app/topics/lsystems/koch.rb +0 -19
- data/samples/processing_app/topics/lsystems/library/cs_grammar/cs_grammar.rb +0 -82
- data/samples/processing_app/topics/lsystems/library/grammar/grammar.rb +0 -31
- data/samples/processing_app/topics/lsystems/library/koch/koch_fractal.rb +0 -99
- data/samples/processing_app/topics/lsystems/library/stochastic_grammar/stochastic_grammar.rb +0 -56
- data/samples/processing_app/topics/lsystems/mpeano.rb +0 -80
- data/samples/processing_app/topics/lsystems/peano.rb +0 -76
- data/samples/processing_app/topics/lsystems/penrose.rb +0 -117
- data/samples/processing_app/topics/lsystems/penrose_snowflake.rb +0 -88
- data/samples/processing_app/topics/lsystems/pentagonal.rb +0 -100
- data/samples/processing_app/topics/lsystems/snake_kolam.rb +0 -93
- data/samples/processing_app/topics/lsystems/stochastic_test.rb +0 -96
- data/samples/processing_app/topics/lsystems/three_d_tree.rb +0 -109
- data/samples/processing_app/topics/motion/Rakefile +0 -30
- data/samples/processing_app/topics/motion/bounce.rb +0 -40
- data/samples/processing_app/topics/motion/bouncy_bubbles.rb +0 -96
- data/samples/processing_app/topics/motion/brownian.rb +0 -40
- data/samples/processing_app/topics/motion/circle_collision.rb +0 -142
- data/samples/processing_app/topics/motion/cubes_in_cube.rb +0 -62
- data/samples/processing_app/topics/motion/data/java_args.txt +0 -3
- data/samples/processing_app/topics/motion/library/cube/cube.rb +0 -128
- data/samples/processing_app/topics/motion/library/ground/ground.rb +0 -42
- data/samples/processing_app/topics/motion/linear.rb +0 -25
- data/samples/processing_app/topics/motion/morph.rb +0 -84
- data/samples/processing_app/topics/motion/moving_on_curves.rb +0 -46
- data/samples/processing_app/topics/motion/puff.rb +0 -78
- data/samples/processing_app/topics/motion/reflection1.rb +0 -108
- data/samples/processing_app/topics/motion/reflection2.rb +0 -122
- data/samples/processing_app/topics/ruby_hook/hooky.rb +0 -26
- data/samples/processing_app/topics/ruby_hook/subclass.rb +0 -75
- data/samples/processing_app/topics/shaders/README +0 -1
- data/samples/processing_app/topics/shaders/Rakefile +0 -30
- data/samples/processing_app/topics/shaders/blur_filter.rb +0 -25
- data/samples/processing_app/topics/shaders/bw_shader.rb +0 -40
- data/samples/processing_app/topics/shaders/conway.rb +0 -26
- data/samples/processing_app/topics/shaders/data/FishEye.glsl +0 -59
- data/samples/processing_app/topics/shaders/data/GlossyFrag.glsl +0 -44
- data/samples/processing_app/topics/shaders/data/GlossyVert.glsl +0 -33
- data/samples/processing_app/topics/shaders/data/Texture01.jpg +0 -0
- data/samples/processing_app/topics/shaders/data/Texture02.jpg +0 -0
- data/samples/processing_app/topics/shaders/data/ToonFrag.glsl +0 -25
- data/samples/processing_app/topics/shaders/data/ToonVert.glsl +0 -31
- data/samples/processing_app/topics/shaders/data/blur.glsl +0 -42
- data/samples/processing_app/topics/shaders/data/bwfrag.glsl +0 -23
- data/samples/processing_app/topics/shaders/data/conway.glsl +0 -57
- data/samples/processing_app/topics/shaders/data/cubemapfrag.glsl +0 -1
- data/samples/processing_app/topics/shaders/data/cubemapvert.glsl +0 -1
- data/samples/processing_app/topics/shaders/data/deform.glsl +0 -31
- data/samples/processing_app/topics/shaders/data/displaceFrag.glsl +0 -8
- data/samples/processing_app/topics/shaders/data/displaceVert.glsl +0 -201
- data/samples/processing_app/topics/shaders/data/edges.glsl +0 -40
- data/samples/processing_app/topics/shaders/data/java_args.txt +0 -2
- data/samples/processing_app/topics/shaders/data/lachoy.jpg +0 -0
- data/samples/processing_app/topics/shaders/data/landscape.glsl +0 -352
- data/samples/processing_app/topics/shaders/data/leaves.jpg +0 -0
- data/samples/processing_app/topics/shaders/data/mask.glsl +0 -19
- data/samples/processing_app/topics/shaders/data/monjori.glsl +0 -30
- data/samples/processing_app/topics/shaders/data/nebula.glsl +0 -111
- data/samples/processing_app/topics/shaders/data/sep_blur.glsl +0 -59
- data/samples/processing_app/topics/shaders/data/tex1.jpg +0 -0
- data/samples/processing_app/topics/shaders/deform.rb +0 -28
- data/samples/processing_app/topics/shaders/edge_detect.rb +0 -28
- data/samples/processing_app/topics/shaders/glossy_fish_eye.rb +0 -57
- data/samples/processing_app/topics/shaders/glsl_heightmap_noise.rb +0 -125
- data/samples/processing_app/topics/shaders/image_mask.rb +0 -31
- data/samples/processing_app/topics/shaders/landscape.rb +0 -32
- data/samples/processing_app/topics/shaders/monjori.rb +0 -28
- data/samples/processing_app/topics/shaders/nebula.rb +0 -18
- data/samples/processing_app/topics/shaders/sep_blur.rb +0 -64
- data/samples/processing_app/topics/shaders/toon_shading.rb +0 -43
- data/samples/processing_app/topics/simulate/README +0 -1
- data/samples/processing_app/topics/simulate/chain.rb +0 -80
- data/samples/processing_app/topics/simulate/data/java_args.txt +0 -2
- data/samples/processing_app/topics/simulate/data/texture.gif +0 -0
- data/samples/processing_app/topics/simulate/data/texture.png +0 -0
- data/samples/processing_app/topics/simulate/flocking.rb +0 -32
- data/samples/processing_app/topics/simulate/library/flock/flock.rb +0 -203
- data/samples/processing_app/topics/simulate/multiple_particle_systems.rb +0 -133
- data/samples/processing_app/topics/simulate/simple_particle_system.rb +0 -78
- data/samples/processing_app/topics/simulate/smoke_particle_system.rb +0 -125
- data/samples/processing_app/topics/simulate/spring.rb +0 -80
- data/samples/processing_app/topics/simulate/springs.rb +0 -120
- data/samples/processing_app/topics/vectors/acceleration_with_vectors.rb +0 -78
- data/samples/processing_app/topics/vectors/bouncing_ball.rb +0 -50
- data/samples/processing_app/topics/vectors/vector_math.rb +0 -39
@@ -1,108 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Non-orthogonal Reflection
|
3
|
-
# by Ira Greenberg.
|
4
|
-
#
|
5
|
-
# Based on the equation (R = 2N(N*L)-L) where R is the
|
6
|
-
# reflection vector, N is the normal, and L is the incident
|
7
|
-
# vector.
|
8
|
-
#
|
9
|
-
load_library :vecmath
|
10
|
-
|
11
|
-
attr_reader :base1, :base2, :base_length, :coords, :position, :radius
|
12
|
-
attr_reader :direction, :speed, :velocity, :incidence
|
13
|
-
|
14
|
-
def setup
|
15
|
-
size(640, 360)
|
16
|
-
@radius = 6
|
17
|
-
@speed = 3.5
|
18
|
-
fill(128)
|
19
|
-
@base1 = Vec2D.new(0, height - 150)
|
20
|
-
@base2 = Vec2D.new(width, height)
|
21
|
-
@coords = create_ground
|
22
|
-
# start ellipse at middle top of screen
|
23
|
-
@position = Vec2D.new(width/2, 0)
|
24
|
-
# set initial random direction
|
25
|
-
@direction = Vec2D.new(rand(-1.0..1), rand(-1.0..1))
|
26
|
-
@velocity = Vec2D.new
|
27
|
-
end
|
28
|
-
|
29
|
-
def draw
|
30
|
-
# draw background
|
31
|
-
fill(0, 12)
|
32
|
-
no_stroke
|
33
|
-
rect(0, 0, width, height)
|
34
|
-
|
35
|
-
# draw base
|
36
|
-
fill(200)
|
37
|
-
quad(base1.x, base1.y, base2.x, base2.y, base2.x, height, 0, height)
|
38
|
-
|
39
|
-
# calculate base top normal
|
40
|
-
base_delta = base2 - base1
|
41
|
-
base_delta.normalize!
|
42
|
-
normal = Vec2D.new(-base_delta.y, base_delta.x)
|
43
|
-
# draw ellipse
|
44
|
-
no_stroke
|
45
|
-
fill(255)
|
46
|
-
ellipse(position.x, position.y, radius * 2, radius * 2)
|
47
|
-
|
48
|
-
# set ellipse velocity
|
49
|
-
@velocity.x, @velocity.y = direction.x, direction.y
|
50
|
-
@velocity *= speed
|
51
|
-
|
52
|
-
# move ellipse
|
53
|
-
@position += velocity
|
54
|
-
|
55
|
-
# normalized incidence vector
|
56
|
-
@incidence = direction * -1
|
57
|
-
|
58
|
-
# detect and handle collision
|
59
|
-
coords.each do |coord|
|
60
|
-
# check distance between ellipse and base top coordinates
|
61
|
-
if (Vec2D.dist_squared(position, coord) < radius * radius)
|
62
|
-
|
63
|
-
# calculate dot product of incident vector and base top normal
|
64
|
-
dot = incidence.dot(normal)
|
65
|
-
|
66
|
-
# assign reflection vector to direction vector
|
67
|
-
direction.x, direction.y = 2*normal.x*dot - incidence.x, 2*normal.y*dot - incidence.y
|
68
|
-
# draw base top normal at collision point
|
69
|
-
stroke(255, 128, 0)
|
70
|
-
line(position.x, position.y, position.x - normal.x*100, position.y - normal.y*100)
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# detect boundary collision
|
75
|
-
# right
|
76
|
-
if (position.x > width - radius)
|
77
|
-
@position.x = width - radius
|
78
|
-
@direction.x *= -1
|
79
|
-
end
|
80
|
-
# left
|
81
|
-
if (position.x < radius)
|
82
|
-
@position.x = radius
|
83
|
-
@direction.x *= -1
|
84
|
-
end
|
85
|
-
# top
|
86
|
-
if (position.y < radius)
|
87
|
-
@position.y = radius
|
88
|
-
@direction.y *= -1
|
89
|
-
# randomize base top
|
90
|
-
@base1.y = rand(height - 100..height)
|
91
|
-
@base2.y = rand(height - 100..height)
|
92
|
-
@coords = create_ground
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
def create_ground
|
97
|
-
# calculate length of base top
|
98
|
-
@base_length = Vec2D.dist(base1, base2)
|
99
|
-
# fill base top coordinate array
|
100
|
-
coords = []
|
101
|
-
(0 ... base_length.ceil).each do |i|
|
102
|
-
coords << Vec2D.new(
|
103
|
-
base1.x + ((base2.x - base1.x) / base_length) * i,
|
104
|
-
base1.y + ((base2.y - base1.y) / base_length) * i)
|
105
|
-
end
|
106
|
-
return coords
|
107
|
-
end
|
108
|
-
|
@@ -1,122 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Non-orthogonal Collision with Multiple Segments
|
3
|
-
# by Ira Greenberg.
|
4
|
-
#
|
5
|
-
# Based on Keith Peter's Solution in
|
6
|
-
# Foundation Actionscript Animation: Making Things Move!
|
7
|
-
|
8
|
-
|
9
|
-
load_library 'ground'
|
10
|
-
|
11
|
-
GRAVITY = Vect.new(0, 0.05)
|
12
|
-
DAMPING = 0.8
|
13
|
-
SEGS = 40
|
14
|
-
attr_accessor :orb, :velocity
|
15
|
-
attr_reader :ground, :peakHeights
|
16
|
-
|
17
|
-
def setup
|
18
|
-
size(640, 360)
|
19
|
-
@orb = Orb.new(50.0, 50.0, 3.0)
|
20
|
-
@velocity = Vect.new(0.5, 0.0)
|
21
|
-
# Initialize ground peak heights
|
22
|
-
@peakHeights = []
|
23
|
-
(SEGS + 1).times do
|
24
|
-
@peakHeights << rand(height - 40.0..height - 30.0)
|
25
|
-
end
|
26
|
-
@ground = []
|
27
|
-
|
28
|
-
# Float value required for segment width
|
29
|
-
# calculations so the ground spans the entire
|
30
|
-
# display window, regardless of segment number.
|
31
|
-
|
32
|
-
SEGS.times do |i|
|
33
|
-
@ground << Ground.new(width.to_f/SEGS*i, peakHeights[i], width.to_f/SEGS*(i+1), peakHeights[i+1])
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
|
38
|
-
def draw
|
39
|
-
# Background
|
40
|
-
no_stroke
|
41
|
-
fill(0, 0, 40, 15)
|
42
|
-
rect(0, 0, width, height)
|
43
|
-
|
44
|
-
# Move orb
|
45
|
-
velocity.add(GRAVITY)
|
46
|
-
orb.move(velocity)
|
47
|
-
|
48
|
-
# Draw ground
|
49
|
-
fill(127, 80, 70)
|
50
|
-
begin_shape
|
51
|
-
ground.each do |seg|
|
52
|
-
vertex(seg.x1, seg.y1)
|
53
|
-
vertex(seg.x2, seg.y2)
|
54
|
-
end
|
55
|
-
vertex(ground[SEGS - 1].x2, height)
|
56
|
-
vertex(ground[0].x1, height)
|
57
|
-
end_shape(CLOSE)
|
58
|
-
|
59
|
-
# Draw orb
|
60
|
-
no_stroke
|
61
|
-
fill(200)
|
62
|
-
ellipse(orb.x, orb.y, orb.r * 2, orb.r * 2)
|
63
|
-
|
64
|
-
# Collision detection
|
65
|
-
check_wall_collision
|
66
|
-
ground.each do |seg|
|
67
|
-
check_ground_collision(seg)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
|
72
|
-
def check_wall_collision
|
73
|
-
if (orb.x > width-orb.r)
|
74
|
-
orb.x = width-orb.r
|
75
|
-
velocity.x *= -DAMPING
|
76
|
-
|
77
|
-
elsif (orb.x < orb.r)
|
78
|
-
orb.x = orb.r
|
79
|
-
velocity.x *= -DAMPING
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
|
84
|
-
def check_ground_collision(ground_segment)
|
85
|
-
|
86
|
-
# Get difference between orb and ground
|
87
|
-
dx = orb.x - ground_segment.x
|
88
|
-
dy = orb.y - ground_segment.y
|
89
|
-
|
90
|
-
# Precalculate trig values
|
91
|
-
cosine = cos(ground_segment.rot)
|
92
|
-
sine = sin(ground_segment.rot)
|
93
|
-
|
94
|
-
# Rotate ground and velocity to allow
|
95
|
-
# orthogonal collision calculations
|
96
|
-
ground_x_temp = cosine * dx + sine * dy
|
97
|
-
ground_y_temp = cosine * dy - sine * dx
|
98
|
-
velocity_x_temp = cosine * velocity.x + sine * velocity.y
|
99
|
-
velocity_y_temp = cosine * velocity.y - sine * velocity.x
|
100
|
-
|
101
|
-
# collision - check for surface
|
102
|
-
# collision and also that orb is within
|
103
|
-
# left/rights bounds of ground segment
|
104
|
-
if (ground_y_temp + orb.r) > EPSILON * 5
|
105
|
-
if (orb.x > ground_segment.x1) && (orb.x < ground_segment.x2)
|
106
|
-
# keep orb from going into ground
|
107
|
-
ground_y_temp = -orb.r
|
108
|
-
# bounce and slow down orb
|
109
|
-
velocity_y_temp *= -DAMPING
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
# Reset ground, velocity and orb
|
114
|
-
dx = cosine * ground_x_temp - sine * ground_y_temp
|
115
|
-
dy = cosine * ground_y_temp + sine * ground_x_temp
|
116
|
-
@velocity.x = cosine * velocity_x_temp - sine * velocity_y_temp
|
117
|
-
@velocity.y = cosine * velocity_y_temp + sine * velocity_x_temp
|
118
|
-
@orb.x = ground_segment.x + dx
|
119
|
-
@orb.y = ground_segment.y + dy
|
120
|
-
end
|
121
|
-
|
122
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# Hooky class demonstrates how to use the post_initialize hook,
|
2
|
-
# available since ruby-processing-2.6.2, to additional attribute
|
3
|
-
# in this case :background as an array of int (splat to color)
|
4
|
-
# Not sure how clever it is to have multiple sketch instances.
|
5
|
-
|
6
|
-
class Hooky < Processing::App
|
7
|
-
attr_reader :back
|
8
|
-
|
9
|
-
def setup
|
10
|
-
size 200, 200
|
11
|
-
background(*back)
|
12
|
-
end
|
13
|
-
|
14
|
-
def post_initialize(args)
|
15
|
-
@back = (args[:background])
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
red = [200, 0, 0]
|
20
|
-
green = [0, 200, 0]
|
21
|
-
blue = [0, 0, 200]
|
22
|
-
colors = [red, green, blue]
|
23
|
-
|
24
|
-
colors.each_with_index do |col, i|
|
25
|
-
Hooky.new(x: i * 90, y: i * 90, title: "Hooky #{i}", background: col)
|
26
|
-
end
|
@@ -1,75 +0,0 @@
|
|
1
|
-
# An example demonstrating the use of a hook to decouple subclasses in
|
2
|
-
# ruby-processing. The base class here is Spin, and we have included
|
3
|
-
# post_initialize as the hook (it does nothing in the base class). SpinArm
|
4
|
-
# and SpinSpots both subclass Spin, but only SpinSpots requires the hook to
|
5
|
-
# change the initialization. Note the use the hook means the subclass does
|
6
|
-
# not need to call super
|
7
|
-
|
8
|
-
def setup
|
9
|
-
size 640, 360
|
10
|
-
@arm = SpinArm.new(x: width / 2, y: height / 2, s: 0.01)
|
11
|
-
@spots = SpinSpots.new(x: width / 2, y: height / 2, s: -0.02, d: 90.0)
|
12
|
-
end
|
13
|
-
|
14
|
-
def draw
|
15
|
-
background 204
|
16
|
-
@arm.display
|
17
|
-
@spots.display
|
18
|
-
end
|
19
|
-
|
20
|
-
class Spin
|
21
|
-
|
22
|
-
attr_accessor :x, :y, :speed
|
23
|
-
attr_accessor :angle
|
24
|
-
|
25
|
-
def initialize(args = {})
|
26
|
-
@x, @y = args[:x], args[:y]
|
27
|
-
@speed = args[:s]
|
28
|
-
@angle = args[:angle] || 0.0
|
29
|
-
post_initialize(args) # this is the hook
|
30
|
-
end
|
31
|
-
|
32
|
-
def update
|
33
|
-
@angle += speed
|
34
|
-
end
|
35
|
-
|
36
|
-
def post_initialize(_args)
|
37
|
-
nil
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|
41
|
-
|
42
|
-
class SpinArm < Spin # inherit from (or "extend") class Spin
|
43
|
-
# NB: initialize inherited from Spin class
|
44
|
-
|
45
|
-
def display
|
46
|
-
stroke_weight 1
|
47
|
-
stroke 0
|
48
|
-
push_matrix
|
49
|
-
translate x, y
|
50
|
-
update
|
51
|
-
rotate angle
|
52
|
-
line 0, 0, 165, 0
|
53
|
-
pop_matrix
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
|
58
|
-
class SpinSpots < Spin
|
59
|
-
attr_accessor :dim
|
60
|
-
|
61
|
-
def post_initialize(args)
|
62
|
-
@dim = args[:d]
|
63
|
-
end
|
64
|
-
|
65
|
-
def display
|
66
|
-
no_stroke
|
67
|
-
push_matrix
|
68
|
-
translate x, y
|
69
|
-
update
|
70
|
-
rotate angle
|
71
|
-
ellipse(-dim / 2, 0, dim, dim)
|
72
|
-
ellipse(dim / 2, 0, dim, dim)
|
73
|
-
pop_matrix
|
74
|
-
end
|
75
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
Recently I needed to use an external jruby to get some sketches to run OK (otherwise I got method missing errors see external_library/fisica). I thought I may be able to get rid of the included jruby-complete, until I tried to run the shader examples in this folder. I got java lang null pointer exception for these sketches and a few others (notably planets.rb in the demo folder). Needeless to say these sketches run OK using the included jruby-complete!!!
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Simple demo Rakefile to autorun samples in current directory
|
2
|
-
# adjust path to rp5 executable, and or opts as required
|
3
|
-
|
4
|
-
SAMPLES_DIR="./"
|
5
|
-
|
6
|
-
desc 'run demo'
|
7
|
-
task :default => [:demo]
|
8
|
-
|
9
|
-
desc 'demo'
|
10
|
-
task :demo do
|
11
|
-
samples_list.shuffle.each{|sample| run_sample sample}
|
12
|
-
end
|
13
|
-
|
14
|
-
def samples_list
|
15
|
-
files = []
|
16
|
-
Dir.chdir(SAMPLES_DIR)
|
17
|
-
Dir.glob("*.rb").each do |file|
|
18
|
-
files << File.join(SAMPLES_DIR, file)
|
19
|
-
end
|
20
|
-
return files
|
21
|
-
end
|
22
|
-
|
23
|
-
def run_sample(sample_name)
|
24
|
-
puts "Running #{sample_name}...quit to run next sample"
|
25
|
-
open("|rp5 --nojruby run #{sample_name}", "r") do |io|
|
26
|
-
while l = io.gets
|
27
|
-
puts(l.chop)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Blur Filter
|
3
|
-
#
|
4
|
-
# Change the default shader to apply a simple, custom blur filter.
|
5
|
-
#
|
6
|
-
# Press the mouse to switch between the custom and default shader.
|
7
|
-
#
|
8
|
-
|
9
|
-
attr_reader :blur
|
10
|
-
|
11
|
-
def setup
|
12
|
-
size(640, 360, P2D)
|
13
|
-
@blur = load_shader('blur.glsl')
|
14
|
-
stroke(255, 0, 0)
|
15
|
-
rectMode(CENTER)
|
16
|
-
end
|
17
|
-
|
18
|
-
def draw
|
19
|
-
filter(blur)
|
20
|
-
rect(mouse_x, mouse_y, 150, 150)
|
21
|
-
ellipse(mouse_x, mouse_y, 100, 100)
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
|
-
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# Texture from Jason Liebig's FLICKR collection of vintage labels and wrappers:
|
2
|
-
# http://www.flickr.com/photos/jasonliebigstuff/3739263136/in/photostream/
|
3
|
-
|
4
|
-
attr_reader :label, :can, :angle, :bw_shader
|
5
|
-
|
6
|
-
def setup
|
7
|
-
size(640, 360, P3D)
|
8
|
-
@label = load_image('lachoy.jpg')
|
9
|
-
@can = create_can(100, 200, 32, label)
|
10
|
-
@bw_shader = load_shader('bwfrag.glsl')
|
11
|
-
@angle = 0
|
12
|
-
end
|
13
|
-
|
14
|
-
def draw
|
15
|
-
background(0)
|
16
|
-
shader(bw_shader)
|
17
|
-
translate(width/2, height/2)
|
18
|
-
rotate_y(angle)
|
19
|
-
shape(can)
|
20
|
-
@angle += 0.01
|
21
|
-
end
|
22
|
-
|
23
|
-
def create_can(r, h, detail, tex)
|
24
|
-
texture_mode(NORMAL)
|
25
|
-
sh = create_shape
|
26
|
-
sh.begin_shape(QUAD_STRIP)
|
27
|
-
sh.no_stroke
|
28
|
-
sh.texture(tex)
|
29
|
-
(0..detail).each do |i|
|
30
|
-
angle = TAU / detail
|
31
|
-
x = sin(i * angle)
|
32
|
-
z = cos(i * angle)
|
33
|
-
u = i.to_f / detail
|
34
|
-
sh.normal(x, 0, z)
|
35
|
-
sh.vertex(x * r, -h/2, z * r, u, 0)
|
36
|
-
sh.vertex(x * r, +h/2, z * r, u, 1)
|
37
|
-
end
|
38
|
-
sh.end_shape
|
39
|
-
return sh
|
40
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# GLSL version of Conway's game of life, ported from GLSL sandbox:
|
2
|
-
# http://glsl.heroku.com/e/207.3
|
3
|
-
# Exemplifies the use of the ppixels uniform in the shader, that gives
|
4
|
-
# access to the pixels of the previous frame.
|
5
|
-
attr_accessor :pg, :conway
|
6
|
-
|
7
|
-
def setup
|
8
|
-
size(400, 400, P3D)
|
9
|
-
@pg = createGraphics(400, 400, P2D)
|
10
|
-
pg.no_smooth
|
11
|
-
@conway = load_shader('data/conway.glsl')
|
12
|
-
conway.set('resolution', width.to_f, height.to_f)
|
13
|
-
end
|
14
|
-
|
15
|
-
def draw
|
16
|
-
conway.set('time', millis / 1000.0)
|
17
|
-
xm = map(mouse_x, 0, width, 0, 1) # NB: processings map function
|
18
|
-
ym = map(mouse_y, 0, height, 1, 0)
|
19
|
-
conway.set('mouse', xm, ym)
|
20
|
-
pg.begin_draw
|
21
|
-
pg.background(0)
|
22
|
-
pg.shader(conway)
|
23
|
-
pg.rect(0, 0, pg.width, pg.height)
|
24
|
-
pg.end_draw
|
25
|
-
image(pg, 0, 0, width, height)
|
26
|
-
end
|