ruby-processing 2.6.3 → 2.6.4
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.
- 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,59 +0,0 @@
|
|
|
1
|
-
# This sketch demonstrates how to create synthesized sound with Minim using an <code>AudioOutput</code> and the
|
|
2
|
-
# default instrument built into an <code>AudioOutput</code>. By using the <code>play_note</code> method you can
|
|
3
|
-
# schedule notes to played at some point in the future, essentially allowing to you create musical scores with
|
|
4
|
-
# code. Because they are constructed with code, they can be either deterministic or different every time. This
|
|
5
|
-
# sketch creates a deterministic score, meaning it is the same every time you run the sketch. It also demonstrates
|
|
6
|
-
# a couple different versions of the <code>play_note</code> method.
|
|
7
|
-
# <p>
|
|
8
|
-
# For more complex examples of using <code>play_note</code> check out algorithmicCompExample and compositionExample
|
|
9
|
-
# in the Synthesis folder.
|
|
10
|
-
#
|
|
11
|
-
load_library 'minim'
|
|
12
|
-
include_package 'ddf.minim'
|
|
13
|
-
include_package 'ddf.minim.ugens'
|
|
14
|
-
|
|
15
|
-
attr_reader :minim, :out
|
|
16
|
-
|
|
17
|
-
def setup
|
|
18
|
-
size(512, 200, P3D)
|
|
19
|
-
@minim = Minim.new(self)
|
|
20
|
-
|
|
21
|
-
# use the getLineOut method of the Minim object to get an AudioOutput object
|
|
22
|
-
@out = minim.get_line_out()
|
|
23
|
-
|
|
24
|
-
# given start time, duration, and frequency
|
|
25
|
-
out.play_note( 0.0, 0.9, 97.99 )
|
|
26
|
-
out.play_note( 1.0, 0.9, 123.47 )
|
|
27
|
-
|
|
28
|
-
# given start time, duration, and note name
|
|
29
|
-
out.play_note( 2.0, 2.9, "C3" )
|
|
30
|
-
out.play_note( 3.0, 1.9, "E3" )
|
|
31
|
-
out.play_note( 4.0, 0.9, "G3" )
|
|
32
|
-
|
|
33
|
-
# given start time and note name or frequency
|
|
34
|
-
# (duration defaults to 1.0)
|
|
35
|
-
out.play_note( 5.0, "" )
|
|
36
|
-
out.play_note( 6.0, 329.63)
|
|
37
|
-
out.play_note( 7.0, "G4" )
|
|
38
|
-
|
|
39
|
-
# the note offset is simply added into the start time of
|
|
40
|
-
# every subsequenct call to play_note. It's expressed in beats,
|
|
41
|
-
# but since the default tempo of an AudioOuput is 60 beats per minute,
|
|
42
|
-
# this particular call translates to 8.1 seconds, as you might expect.
|
|
43
|
-
out.setNoteOffset( 8.1 )
|
|
44
|
-
|
|
45
|
-
# because only given a note name or frequency
|
|
46
|
-
# starttime defaults to 0.0 and duration defaults to 1.0
|
|
47
|
-
out.play_note( "G5" )
|
|
48
|
-
out.play_note( 987.77 )
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
def draw
|
|
52
|
-
background(0)
|
|
53
|
-
stroke(255)
|
|
54
|
-
# draw the waveforms
|
|
55
|
-
(0 ... out.buffer_size - 1).step do |i|
|
|
56
|
-
line( i, 50 + out.left.get(i)*50, i+1, 50 + out.left.get(i+1)*50 )
|
|
57
|
-
line( i, 150 + out.right.get(i)*50, i+1, 150 + out.right.get(i+1)*50 )
|
|
58
|
-
end
|
|
59
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# This sketch demonstrates how to create synthesized sound with Minim
|
|
2
|
-
# using an AudioOutput and an Oscil. An Oscil is a UGen object,
|
|
3
|
-
# one of many different types included with Minim. For many more examples
|
|
4
|
-
# of UGens included with Minim, have a look in the Synthesis
|
|
5
|
-
# folder of the Minim examples.
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
load_library 'minim'
|
|
9
|
-
include_package 'ddf.minim'
|
|
10
|
-
include_package 'ddf.minim.ugens'
|
|
11
|
-
|
|
12
|
-
attr_reader :minim, :out, :wave
|
|
13
|
-
|
|
14
|
-
def setup
|
|
15
|
-
size(512, 200, P3D)
|
|
16
|
-
@minim = Minim.new(self)
|
|
17
|
-
|
|
18
|
-
# use the getLineOut method of the Minim object to get an AudioOutput object
|
|
19
|
-
@out = minim.get_line_out()
|
|
20
|
-
|
|
21
|
-
# create a sine wave Oscil, set to 440 Hz, at 0.5 amplitude
|
|
22
|
-
@wave = Oscil.new( 440, 0.5, Waves::SINE )
|
|
23
|
-
# patch the Oscil to the output
|
|
24
|
-
wave.patch(out)
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def draw
|
|
28
|
-
background(0)
|
|
29
|
-
stroke(255)
|
|
30
|
-
# draw the waveforms
|
|
31
|
-
(0 ... out.buffer_size - 1).step do |i|
|
|
32
|
-
line( i, 50 + out.left.get(i)*50, i+1, 50 + out.left.get(i+1)*50 )
|
|
33
|
-
line( i, 150 + out.right.get(i)*50, i+1, 150 + out.right.get(i+1)*50 )
|
|
34
|
-
end
|
|
35
|
-
end
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Sketches in this folder may need to be run with the "--nojruby" flag.
|
|
Binary file
|
|
Binary file
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Loop.
|
|
2
|
-
#
|
|
3
|
-
# Shows how to load and play a QuickTime movie file.
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
|
|
7
|
-
load_library 'video'
|
|
8
|
-
|
|
9
|
-
include_package 'processing.video'
|
|
10
|
-
|
|
11
|
-
attr_reader :movie
|
|
12
|
-
|
|
13
|
-
def setup
|
|
14
|
-
size(640, 360)
|
|
15
|
-
background(0)
|
|
16
|
-
# Load and play the video in a loop
|
|
17
|
-
@movie = Movie.new(self, "transit.mov")
|
|
18
|
-
movie.loop
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
def draw
|
|
22
|
-
movie.read if movie.available?
|
|
23
|
-
image(movie, 0, 0, width, height)
|
|
24
|
-
end
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Pixelate
|
|
3
|
-
# by Hernando Barragan.
|
|
4
|
-
#
|
|
5
|
-
# Load a QuickTime file and display the video signal
|
|
6
|
-
# using rectangles as pixels by reading the values stored
|
|
7
|
-
# in the current video frame pixels array.
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
load_library :video
|
|
11
|
-
include_package 'processing.video'
|
|
12
|
-
|
|
13
|
-
BLOCK_SIZE = 10
|
|
14
|
-
|
|
15
|
-
attr_reader :mov, :movie_color, :num_pixels_wide, :num_pixels_high
|
|
16
|
-
|
|
17
|
-
def setup
|
|
18
|
-
size(640, 360)
|
|
19
|
-
no_stroke
|
|
20
|
-
@mov = Movie.new(self, "transit.mov")
|
|
21
|
-
@num_pixels_wide = width / BLOCK_SIZE
|
|
22
|
-
@num_pixels_high = height / BLOCK_SIZE
|
|
23
|
-
@movie_color = []
|
|
24
|
-
puts num_pixels_wide
|
|
25
|
-
mov.loop
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
# Display values from movie
|
|
29
|
-
def draw
|
|
30
|
-
begin
|
|
31
|
-
movie_color.clear
|
|
32
|
-
mov.read
|
|
33
|
-
mov.load_pixels
|
|
34
|
-
num_pixels_high.times do |j|
|
|
35
|
-
num_pixels_wide.times do |i|
|
|
36
|
-
movie_color << mov.get(i*BLOCK_SIZE, j*BLOCK_SIZE)
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end unless !mov.available?
|
|
40
|
-
|
|
41
|
-
num_pixels_high.times do |j|
|
|
42
|
-
num_pixels_wide.times do |i|
|
|
43
|
-
fill(movie_color[j*num_pixels_wide + i])
|
|
44
|
-
rect(i*BLOCK_SIZE, j*BLOCK_SIZE, BLOCK_SIZE, BLOCK_SIZE)
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Reverse playback example.
|
|
3
|
-
#
|
|
4
|
-
# The Movie.speed method allows to change the playback speed.
|
|
5
|
-
# Use negative values for backwards playback. Note that not all
|
|
6
|
-
# video formats support backwards playback. This depends on the
|
|
7
|
-
# underlying gstreamer plugins used by gsvideo. For example, the
|
|
8
|
-
# theora codec does support backward playback, but not so the H264
|
|
9
|
-
# codec, at least in its current version.
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
load_library :video
|
|
13
|
-
include_package 'processing.video'
|
|
14
|
-
|
|
15
|
-
attr_reader :mov, :speed_set, :once
|
|
16
|
-
|
|
17
|
-
def setup
|
|
18
|
-
size(640, 360)
|
|
19
|
-
background(0)
|
|
20
|
-
@speed_set = false
|
|
21
|
-
@once = true
|
|
22
|
-
@mov = Movie.new(self, "transit.mkv")
|
|
23
|
-
mov.play
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def draw
|
|
27
|
-
begin # avoids reflection shit
|
|
28
|
-
mov.read
|
|
29
|
-
if (speed_set == true)
|
|
30
|
-
@speed_set = false
|
|
31
|
-
end
|
|
32
|
-
end unless !mov.available?
|
|
33
|
-
if (speed_set == false && once == true)
|
|
34
|
-
# Setting the speed should be done only once,
|
|
35
|
-
# this is the reason for the if statement.
|
|
36
|
-
@speed_set = true
|
|
37
|
-
@once = false
|
|
38
|
-
mov.jump(mov.duration)
|
|
39
|
-
# -1 means backward playback at normal speed.
|
|
40
|
-
mov.speed(-1.0)
|
|
41
|
-
# Setting to play again, since the movie stop
|
|
42
|
-
# playback once it reached the end.
|
|
43
|
-
mov.play
|
|
44
|
-
end
|
|
45
|
-
image(mov, 0, 0, width, height)
|
|
46
|
-
end
|
|
47
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Scratch
|
|
3
|
-
# by Andres Colubri.
|
|
4
|
-
#
|
|
5
|
-
# Move the cursor horizontally across the screen to set
|
|
6
|
-
# the position in the movie file.
|
|
7
|
-
#
|
|
8
|
-
load_library :video
|
|
9
|
-
include_package 'processing.video'
|
|
10
|
-
|
|
11
|
-
attr_reader :mov
|
|
12
|
-
|
|
13
|
-
def setup
|
|
14
|
-
size(640, 360)
|
|
15
|
-
background(0)
|
|
16
|
-
@mov = Movie.new(self, "transit.mov")
|
|
17
|
-
# Pausing the video at the first frame.
|
|
18
|
-
mov.play
|
|
19
|
-
mov.jump 0
|
|
20
|
-
mov.pause
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def draw
|
|
24
|
-
begin
|
|
25
|
-
mov.read
|
|
26
|
-
# A new time position is calculated using the current mouse location:
|
|
27
|
-
t = mov.duration * map(mouse_x, 0, width, 0, 1.0)
|
|
28
|
-
mov.play
|
|
29
|
-
mov.jump(t)
|
|
30
|
-
mov.pause
|
|
31
|
-
end unless !mov.available?
|
|
32
|
-
image(mov, 0, 0)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Speed.
|
|
3
|
-
#
|
|
4
|
-
# Use the Movie.speed method to change
|
|
5
|
-
# the playback speed.
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
load_library :video
|
|
10
|
-
include_package 'processing.video'
|
|
11
|
-
|
|
12
|
-
attr_reader :mov
|
|
13
|
-
|
|
14
|
-
def setup
|
|
15
|
-
size(640, 360)
|
|
16
|
-
background(0)
|
|
17
|
-
@mov = Movie.new(self, "transit.mov")
|
|
18
|
-
mov.loop
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
def draw
|
|
22
|
-
image(mov, 0, 0)
|
|
23
|
-
begin
|
|
24
|
-
mov.read
|
|
25
|
-
end unless !mov.available?
|
|
26
|
-
|
|
27
|
-
new_speed = map(mouse_x, 0, width, 0.1, 2)
|
|
28
|
-
mov.speed(new_speed)
|
|
29
|
-
|
|
30
|
-
fill(255)
|
|
31
|
-
text("%.2f" % new_speed << "X", 10, 30)
|
|
32
|
-
end
|
|
33
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# HTTP Client.
|
|
2
|
-
#
|
|
3
|
-
# Starts a network client that connects to a server on port 80,
|
|
4
|
-
# sends an HTTP 1.0 GET request, and prints the results.
|
|
5
|
-
# Note that this code is not necessary for simple HTTP GET request:
|
|
6
|
-
# Simply calling load_strings("http://www.processing.org") would do
|
|
7
|
-
# the same thing as (and more efficiently than) this example.
|
|
8
|
-
# This example is for people who might want to do something more
|
|
9
|
-
# complicated later.
|
|
10
|
-
|
|
11
|
-
load_library 'net'
|
|
12
|
-
include_package 'processing.net'
|
|
13
|
-
|
|
14
|
-
attr_reader :client, :data
|
|
15
|
-
|
|
16
|
-
def setup
|
|
17
|
-
size(200, 200)
|
|
18
|
-
background(50)
|
|
19
|
-
fill(200)
|
|
20
|
-
@client = Client.new(self, "www.processing.org", 80) # Connect to server on port 80
|
|
21
|
-
client.write("GET / HTTP/1.0\r\n") # Use the HTTP "GET" command to ask for a Web page
|
|
22
|
-
client.write("\r\n")
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def draw
|
|
26
|
-
if (client.available() > 0) # If there's incoming data from the client...
|
|
27
|
-
data = client.read_string() # ...then grab it and print it
|
|
28
|
-
puts data
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
#@todo replace with a pure ruby alternative
|
|
33
|
-
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Geometry
|
|
3
|
-
# by Marius Watz.
|
|
4
|
-
#
|
|
5
|
-
load_libraries :pdf, :fastmath
|
|
6
|
-
include_package 'processing.pdf'
|
|
7
|
-
|
|
8
|
-
attr_reader :num, :pt, :style, :dosave
|
|
9
|
-
|
|
10
|
-
def setup
|
|
11
|
-
size(1024, 768, P3D)
|
|
12
|
-
background(255)
|
|
13
|
-
@dosave = false
|
|
14
|
-
@num = 150
|
|
15
|
-
@pt = []
|
|
16
|
-
@style = []
|
|
17
|
-
|
|
18
|
-
# Set up arc shapes
|
|
19
|
-
index = 0
|
|
20
|
-
(0 ... num).each do |i|
|
|
21
|
-
pt << rand(TAU) # Random X axis rotation
|
|
22
|
-
pt << rand(TAU) # Random Y axis rotation
|
|
23
|
-
|
|
24
|
-
pt << rand(60..80) # Short to quarter-circle arcs
|
|
25
|
-
if (rand(100)>90)
|
|
26
|
-
pt[pt.length - 1] = rand(8..27) * 10
|
|
27
|
-
end
|
|
28
|
-
pt << rand(2..50) * 5 # Radius. Space them out nicely
|
|
29
|
-
|
|
30
|
-
pt << rand(4..32) # Width of band
|
|
31
|
-
if (rand(100) > 90)
|
|
32
|
-
pt[pt.length - 1] = rand(40..60) # Width of band
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
pt << rand(0.005..0.0334)# Speed of rotation
|
|
36
|
-
|
|
37
|
-
# get colors
|
|
38
|
-
prob = rand(100)
|
|
39
|
-
case prob
|
|
40
|
-
when (0..30)
|
|
41
|
-
style[i*2] = color_blended(rand, 255,0,100, 255,0,0, 210)
|
|
42
|
-
when (30..70)
|
|
43
|
-
style[i*2] = color_blended(rand, 0,153,255, 170,225,255, 210)
|
|
44
|
-
when (70..90)
|
|
45
|
-
style[i*2] = color_blended(rand, 200,255,0, 150,255,0, 210)
|
|
46
|
-
else
|
|
47
|
-
style[i*2] = color(255,255,255, 220)
|
|
48
|
-
end
|
|
49
|
-
case prob
|
|
50
|
-
when (0..50)
|
|
51
|
-
style[i*2] = color_blended(rand, 200,255,0, 50,120,0, 210)
|
|
52
|
-
when (50..90)
|
|
53
|
-
style[i*2] = color_blended(rand, 255,100,0, 255,255,0, 210)
|
|
54
|
-
else
|
|
55
|
-
style[i*2] = color(255, 255, 255, 220)
|
|
56
|
-
style[i*2+1] = rand(100) % 3
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
def draw
|
|
62
|
-
if(dosave)
|
|
63
|
-
# set up PGraphicsPDF for use with beginRaw
|
|
64
|
-
pdf = begin_raw(PDF, "pdf_complex_out.pdf")
|
|
65
|
-
# set default Illustrator stroke styles and paint background rect.
|
|
66
|
-
pdf.stroke_join(MITER)
|
|
67
|
-
pdf.stroke_cap(SQUARE)
|
|
68
|
-
pdf.fill(0)
|
|
69
|
-
pdf.no_stroke
|
|
70
|
-
pdf.rect(0,0, width,height)
|
|
71
|
-
end
|
|
72
|
-
background(0)
|
|
73
|
-
index = 0
|
|
74
|
-
translate(width/2, height/2, 0)
|
|
75
|
-
rotate_x(PI/6)
|
|
76
|
-
rotate_y(PI/6)
|
|
77
|
-
(0 ... num).each do |i|
|
|
78
|
-
push_matrix
|
|
79
|
-
rotate_x(pt[index])
|
|
80
|
-
rotate_y(pt[index + 1])
|
|
81
|
-
index += 2
|
|
82
|
-
case (style[i*2+1])
|
|
83
|
-
when 0
|
|
84
|
-
stroke(style[i*2])
|
|
85
|
-
no_fill
|
|
86
|
-
stroke_weight(1)
|
|
87
|
-
arc_line(0,0, pt[index],pt[index + 1],pt[index + 2])
|
|
88
|
-
index += 3
|
|
89
|
-
when 1
|
|
90
|
-
fill(style[i*2])
|
|
91
|
-
no_stroke
|
|
92
|
-
arc_line_bars(0,0, pt[index],pt[index + 1],pt[index + 2])
|
|
93
|
-
index += 3
|
|
94
|
-
else
|
|
95
|
-
fill(style[i*2])
|
|
96
|
-
no_stroke
|
|
97
|
-
arc(0,0, pt[index],pt[index + 1],pt[index + 2])
|
|
98
|
-
index += 3
|
|
99
|
-
end
|
|
100
|
-
# increase rotation
|
|
101
|
-
pt[index-5] += pt[index] / 10
|
|
102
|
-
pt[index-4] += pt[index] / 20
|
|
103
|
-
index += 1
|
|
104
|
-
pop_matrix
|
|
105
|
-
end
|
|
106
|
-
if (dosave)
|
|
107
|
-
end_raw
|
|
108
|
-
@dosave=false
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
# Get blend of two colors
|
|
114
|
-
def color_blended(fract, r, g, b, r2, g2, b2, a)
|
|
115
|
-
r2 = (r2 - r)
|
|
116
|
-
g2 = (g2 - g)
|
|
117
|
-
b2 = (b2 - b)
|
|
118
|
-
color(r + r2 * fract, g + g2 * fract, b + b2 * fract, a)
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
# Draw arc line
|
|
123
|
-
def arc_line(x, y, deg, rad, w)
|
|
124
|
-
a=(deg < 360)? deg : 0
|
|
125
|
-
numlines = w/2
|
|
126
|
-
(0 ... numlines).each do
|
|
127
|
-
begin_shape
|
|
128
|
-
(0 ... a).each do |i|
|
|
129
|
-
vertex(DegLut.cos(i)*rad+x,DegLut.sin(i)*rad+y)
|
|
130
|
-
end
|
|
131
|
-
end_shape
|
|
132
|
-
rad += 2
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Draw arc line with bars
|
|
137
|
-
def arc_line_bars(x, y, deg, rad, w)
|
|
138
|
-
a=(deg < 360)? deg / 16 : 0
|
|
139
|
-
begin_shape(QUADS)
|
|
140
|
-
(0 ... a).step(4) do |i|
|
|
141
|
-
vertex(DegLut.cos(i)*(rad)+x,DegLut.sin(i)*(rad)+y)
|
|
142
|
-
vertex(DegLut.cos(i)*(rad+w)+x,DegLut.sin(i)*(rad+w)+y)
|
|
143
|
-
vertex(DegLut.cos((i + 2))*(rad+w)+x,DegLut.sin((i + 2))*(rad+w)+y)
|
|
144
|
-
vertex(DegLut.cos((i + 2))*(rad)+x,DegLut.sin((i + 2))*(rad)+y)
|
|
145
|
-
end
|
|
146
|
-
end_shape
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
# Draw solid arc
|
|
150
|
-
def arc(x, y, deg, rad, w)
|
|
151
|
-
a = (deg < 360)? deg : 0
|
|
152
|
-
begin_shape(QUAD_STRIP)
|
|
153
|
-
(0 ... a).each do |i|
|
|
154
|
-
vertex(DegLut.cos(i)*(rad)+x,DegLut.sin(i)*(rad)+y)
|
|
155
|
-
vertex(DegLut.cos(i)*(rad+w)+x,DegLut.sin(i)*(rad+w)+y)
|
|
156
|
-
end
|
|
157
|
-
end_shape
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
def mouse_pressed
|
|
161
|
-
@dosave = true
|
|
162
|
-
end
|