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,50 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Characters Strings.
|
|
3
|
-
#
|
|
4
|
-
# The character datatype, abbreviated as char, stores letters and
|
|
5
|
-
# symbols in the Unicode format, a coding system developed to support
|
|
6
|
-
# a variety of world languages. Characters are distinguished from other
|
|
7
|
-
# symbols by putting them between single quotes ('P').<br />
|
|
8
|
-
# <br />
|
|
9
|
-
# A string is a sequence of characters. A string is noted by surrounding
|
|
10
|
-
# a group of letters with double quotes ("Processing").
|
|
11
|
-
# Chars and strings are most often used with the keyboard methods,
|
|
12
|
-
# to display text to the screen, and to load images or files.<br />
|
|
13
|
-
# <br />
|
|
14
|
-
# The String datatype must be capitalized because it is a complex datatype.
|
|
15
|
-
# A String is actually a class with its own methods, some of which are
|
|
16
|
-
# featured below.
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
attr_reader :letter, :words
|
|
20
|
-
|
|
21
|
-
def setup
|
|
22
|
-
size 640, 360
|
|
23
|
-
@words = "Begin..."
|
|
24
|
-
# Create the font
|
|
25
|
-
text_font create_font("Georgia", 36)
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
def draw
|
|
29
|
-
background(0) # Set background to black
|
|
30
|
-
|
|
31
|
-
# Draw the letter to the center of the screen
|
|
32
|
-
text_size(14)
|
|
33
|
-
text("Click on the program, then type to add to the String", 50, 50)
|
|
34
|
-
text("Current key: #{letter}", 50, 70)
|
|
35
|
-
text("The String is #{words.length()} characters long", 50, 90)
|
|
36
|
-
|
|
37
|
-
text_size(36)
|
|
38
|
-
text(words, 50, 120, 540, 300)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
def key_pressed
|
|
42
|
-
# The variable "key" always contains the value
|
|
43
|
-
# of the most recent key pressed.
|
|
44
|
-
if (('A'..'z').include?(key) || key == ' ')
|
|
45
|
-
@letter = key
|
|
46
|
-
@words = words + key
|
|
47
|
-
puts(key)
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# Processings datatype conversion functions make no sense for Ruby as it does
|
|
3
|
-
# not have primitive datatypes. Try these instead:
|
|
4
|
-
# "to_s" (to String)
|
|
5
|
-
# "to_i" (to Integer, thats a Fixnum or Bignum)
|
|
6
|
-
# "to_f" (to Float, which would be "double" in Processing, not "float")
|
|
7
|
-
# "to_a" (to Array, i.e. from a Range or Hash)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def setup
|
|
11
|
-
size 200, 200
|
|
12
|
-
# Ruby has no primitive datatypes, everything is an object!
|
|
13
|
-
# See:
|
|
14
|
-
[1, 2.0, 'a', "B", nil, false].each do |element|
|
|
15
|
-
puts
|
|
16
|
-
puts "#{element.inspect} ... is a #{element.class.name} object"
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
c = 'A' # String (!) as there is no char datatype in Ruby.
|
|
20
|
-
# Single quotes are parsed without substitutions (i.e. "It is #{Time.now}.")
|
|
21
|
-
|
|
22
|
-
f = c.ord.to_f # Sets f = 65.0
|
|
23
|
-
# was "[c].to_f" in Ruby 1.8
|
|
24
|
-
|
|
25
|
-
i = (f * 1.4).to_i # Sets i to 91
|
|
26
|
-
|
|
27
|
-
b = (c.ord.to_i / 2) # Integer or FixNum as there is no byte in Ruby
|
|
28
|
-
|
|
29
|
-
background 51
|
|
30
|
-
no_stroke
|
|
31
|
-
|
|
32
|
-
rect f, 0, 40, 66
|
|
33
|
-
|
|
34
|
-
fill 204
|
|
35
|
-
rect i, 67, 40, 66
|
|
36
|
-
|
|
37
|
-
fill 255
|
|
38
|
-
rect b, 134, 40, 66
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Integers and floats are two different kinds of numerical data.
|
|
2
|
-
# An integer (more commonly called an int) is a number without
|
|
3
|
-
# a decimal point. A float is a floating-point number, which means
|
|
4
|
-
# it is a number that has a decimal place. Floats are used when
|
|
5
|
-
# more precision is needed.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def setup
|
|
9
|
-
size 200, 200
|
|
10
|
-
stroke 255
|
|
11
|
-
frame_rate 30
|
|
12
|
-
|
|
13
|
-
@a = 0 # Create an instance variable "a" of class Integer
|
|
14
|
-
@b = 0.0 # Create an instance variable "b" of class Float (because of "0.0")
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def draw
|
|
18
|
-
background 51
|
|
19
|
-
|
|
20
|
-
@a += 1
|
|
21
|
-
@b += 0.2
|
|
22
|
-
|
|
23
|
-
line @a, 0, @a, height/2
|
|
24
|
-
line @b, height/2, @b, height
|
|
25
|
-
|
|
26
|
-
@a = 0 if @a > width
|
|
27
|
-
@b = 0 if @b > width
|
|
28
|
-
end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Boolean data is one bit of information. True or false.
|
|
2
|
-
# It is common to use Booleans with control statements to
|
|
3
|
-
# determine the flow of a program. In this example, when the
|
|
4
|
-
# boolean value "x" is true, vertical black lines are drawn and when
|
|
5
|
-
# the boolean value "x" is false, horizontal gray lines are drawn.
|
|
6
|
-
|
|
7
|
-
# In Ruby, false and nil are "falsy" ... they are the only things
|
|
8
|
-
# that will fail an "if" test. Absolutely everything else passes "if".
|
|
9
|
-
|
|
10
|
-
def setup
|
|
11
|
-
size 200, 200
|
|
12
|
-
background 0
|
|
13
|
-
stroke 0
|
|
14
|
-
|
|
15
|
-
(1..width).step(2) do |i|
|
|
16
|
-
|
|
17
|
-
x = i < (width/2) # Evaluates to true or false, depending on i
|
|
18
|
-
|
|
19
|
-
if x
|
|
20
|
-
stroke 255
|
|
21
|
-
line i, 1, i, height-1
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
if !x
|
|
25
|
-
stroke 126
|
|
26
|
-
line width/2, i, width-2, i
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Variables may either have a global or local "scope".
|
|
2
|
-
# For example, variables declared within either the
|
|
3
|
-
# setup or draw functions may be only used in these
|
|
4
|
-
# functions. Global variables, variables declared outside
|
|
5
|
-
# of setup and draw, may be used anywhere within the program.
|
|
6
|
-
# If a local variable is declared with the same name as a
|
|
7
|
-
# global variable, the program will use the local variable to make
|
|
8
|
-
# its calculations within the current scope. Variables may be localized
|
|
9
|
-
# within classes, functions, and iterative statements.
|
|
10
|
-
|
|
11
|
-
# Please note that there are some changes on variable scope inside blocks
|
|
12
|
-
# between Ruby versions 1.8 and 1.9.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
def setup
|
|
16
|
-
background 51
|
|
17
|
-
stroke 255
|
|
18
|
-
no_loop
|
|
19
|
-
|
|
20
|
-
@a = 20 # Use "@" before the name to create an instance variable ("@a"),
|
|
21
|
-
# which will be available anywhere inside this instance of "VariableScope".
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
def draw
|
|
25
|
-
# Draw a line using the instance variable "a",
|
|
26
|
-
# as returned by its getter function below
|
|
27
|
-
line a, 0, a, height
|
|
28
|
-
|
|
29
|
-
# Create a new variable "a" local to the block (do-end)
|
|
30
|
-
(50..80).step(2) do |a|
|
|
31
|
-
line a, 0, a, height
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Create a new variable "a" local to the draw method
|
|
35
|
-
a = 100
|
|
36
|
-
line a, 0, a, height
|
|
37
|
-
|
|
38
|
-
# Make a call to the custom function draw_another_line
|
|
39
|
-
draw_another_line
|
|
40
|
-
|
|
41
|
-
# Make a call to the custom function draw_yet_another_line
|
|
42
|
-
draw_yet_another_line
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
def draw_another_line
|
|
46
|
-
# Create a new variable "a" local to this method
|
|
47
|
-
a = 185
|
|
48
|
-
|
|
49
|
-
# Draw a line using the local variable "a"
|
|
50
|
-
line a, 0, a, height
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
def draw_yet_another_line
|
|
54
|
-
# Because no new local variable "a" is set, this line draws using the
|
|
55
|
-
# instance variable "a" (returned by its getter function) which was
|
|
56
|
-
# set to the value 20 in setup.
|
|
57
|
-
line a+2, 0, a+2, height
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
# This is a "getter" function, it returns the value of the instance variable "a"
|
|
61
|
-
def a
|
|
62
|
-
@a
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
# Ruby can add that getter function for you automatically:
|
|
66
|
-
# attr_reader :a
|
|
67
|
-
|
|
68
|
-
# And this would create a setter which will allow you to set "a" to a value ( "a = 123" )
|
|
69
|
-
# without using that "@" sign all the time:
|
|
70
|
-
# attr_writer :a
|
|
71
|
-
|
|
72
|
-
# Or you could just have Ruby add both at once with:
|
|
73
|
-
# attr_accessor :a
|
|
74
|
-
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Variables are used for storing values. In this example, changing
|
|
2
|
-
# the values of variables @one and @two significantly changes the composition.
|
|
3
|
-
|
|
4
|
-
load_library :control_panel
|
|
5
|
-
attr_reader :panel
|
|
6
|
-
def setup
|
|
7
|
-
size 200, 200
|
|
8
|
-
stroke 153
|
|
9
|
-
@one = 20 # Change these with the sliders
|
|
10
|
-
@two = 50
|
|
11
|
-
control_panel do |c|
|
|
12
|
-
c.slider :one, -20..100
|
|
13
|
-
c.slider :two, -20..100
|
|
14
|
-
@panel = c
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def draw
|
|
20
|
-
panel.set_visible(true)
|
|
21
|
-
background 0
|
|
22
|
-
c = @one * 8
|
|
23
|
-
d = @one * 9
|
|
24
|
-
e = @two - @one
|
|
25
|
-
f = @two * 2
|
|
26
|
-
g = f + e
|
|
27
|
-
|
|
28
|
-
line @one, f, @two, g
|
|
29
|
-
line @two, e, @two, g
|
|
30
|
-
line @two, e, d, c
|
|
31
|
-
line @one, e, d-e, c
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# The first two parameters for the bezier function specify the
|
|
2
|
-
# first point in the curve and the last two parameters specify
|
|
3
|
-
# the last point. The middle parameters set the control points
|
|
4
|
-
# that define the shape of the curve.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
def setup
|
|
8
|
-
size 640, 360
|
|
9
|
-
|
|
10
|
-
stroke 255
|
|
11
|
-
no_fill
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
def draw
|
|
15
|
-
background 0
|
|
16
|
-
(0..200).step(20) do |i|
|
|
17
|
-
bezier(mouse_x - (i/2.0), 40+i, 410, 20, 440, 300, 240-(i/16.0), 300+(i/8.0))
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# Bezier Ellipse
|
|
2
|
-
# By Ira Greenberg
|
|
3
|
-
#
|
|
4
|
-
# Generates an ellipse using bezier and
|
|
5
|
-
# trig functions. Approximately every 1/2
|
|
6
|
-
# second a new ellipse is plotted using
|
|
7
|
-
# random values for control/anchor points.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# have Ruby add getter/setter functions for these,
|
|
11
|
-
# so we don't have to write "@var" all the time
|
|
12
|
-
attr_accessor :px, :py, :cx, :cy, :cx2, :cy2, :color_controls, :color_anchors
|
|
13
|
-
|
|
14
|
-
def setup
|
|
15
|
-
size 640, 360
|
|
16
|
-
# wrap as color else complain too big for int
|
|
17
|
-
@color_controls = color(0xFF222222)
|
|
18
|
-
@color_anchors = color(0xFFBBBBBB)
|
|
19
|
-
rect_mode CENTER
|
|
20
|
-
set_ellipse 4, 65, 65
|
|
21
|
-
frame_rate 1
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
def draw
|
|
25
|
-
background 145
|
|
26
|
-
draw_ellipse
|
|
27
|
-
set_ellipse rand(3..12), rand(-100..150), rand(-100..150)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
def draw_ellipse
|
|
31
|
-
number_of_points = px.length # all our arrays have same length
|
|
32
|
-
# draw shape
|
|
33
|
-
stroke_weight 1.125
|
|
34
|
-
stroke 255
|
|
35
|
-
no_fill
|
|
36
|
-
number_of_points.times do |i|
|
|
37
|
-
i2 = (i+1) % number_of_points # wrap around to make a loop
|
|
38
|
-
bezier px[i], py[i],
|
|
39
|
-
cx[i], cy[i],
|
|
40
|
-
cx2[i], cy2[i],
|
|
41
|
-
px[i2], py[i2]
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
# draw lines and handles
|
|
45
|
-
|
|
46
|
-
stroke_weight 0.75
|
|
47
|
-
stroke 0
|
|
48
|
-
|
|
49
|
-
number_of_points.times do |i|
|
|
50
|
-
i2 = (i+1) % number_of_points
|
|
51
|
-
line px[i], py[i], cx[i], cy[i] # anchor to control 1
|
|
52
|
-
line cx2[i], cy2[i], px[i2], py[i2] # control 2 to next anchor
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
number_of_points.times do |i|
|
|
56
|
-
fill color_controls
|
|
57
|
-
no_stroke
|
|
58
|
-
|
|
59
|
-
ellipse cx[i], cy[i], 4, 4
|
|
60
|
-
ellipse cx2[i], cy2[i], 4, 4
|
|
61
|
-
|
|
62
|
-
fill color_anchors
|
|
63
|
-
stroke 0
|
|
64
|
-
|
|
65
|
-
rect px[i], py[i], 5, 5
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
def set_ellipse(points, radius, control_radius)
|
|
70
|
-
|
|
71
|
-
# first time we come here the instance variables are created
|
|
72
|
-
# therefore we need to use "@" or "self.". the former will access the variable
|
|
73
|
-
# directly the latter will use the setter function created by "attr_accessor".
|
|
74
|
-
@px, self.py, @cx, @cy, @cx2, @cy2 = [], [], [], [], [], []
|
|
75
|
-
|
|
76
|
-
angle = 360.0/points
|
|
77
|
-
control_angle_1 = angle/3.0
|
|
78
|
-
control_angle_2 = control_angle_1*2.0
|
|
79
|
-
points.times do |i|
|
|
80
|
-
px[i] = width/2+cos(angle.radians)*radius
|
|
81
|
-
|
|
82
|
-
py[i] = height/2+sin(angle.radians)*radius
|
|
83
|
-
|
|
84
|
-
cx[i] = width/2+cos((angle+control_angle_1).radians)*
|
|
85
|
-
control_radius/cos((control_angle_1).radians)
|
|
86
|
-
|
|
87
|
-
cy[i] = height/2+sin((angle+control_angle_1).radians)*
|
|
88
|
-
control_radius/cos((control_angle_1).radians)
|
|
89
|
-
|
|
90
|
-
cx2[i] = width/2+cos((angle+control_angle_2).radians)*
|
|
91
|
-
control_radius/cos((control_angle_1).radians)
|
|
92
|
-
|
|
93
|
-
cy2[i] = height/2+sin((angle+control_angle_2).radians)*
|
|
94
|
-
control_radius/cos((control_angle_1).radians)
|
|
95
|
-
|
|
96
|
-
#increment angle so trig functions keep chugging along
|
|
97
|
-
angle += 360.0/points
|
|
98
|
-
end
|
|
99
|
-
end
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# Original by Ira Greenberg
|
|
2
|
-
|
|
3
|
-
# 3D castle tower constructed out of individual bricks.
|
|
4
|
-
# Uses the Vect struct and Cube class.
|
|
5
|
-
|
|
6
|
-
attr_reader :angle, :brick, :bricks_per_layer, :brick_layers
|
|
7
|
-
attr_reader :radius, :layer_num, :temp_y
|
|
8
|
-
|
|
9
|
-
def setup
|
|
10
|
-
size 640, 360, P3D
|
|
11
|
-
@bricks_per_layer = 16
|
|
12
|
-
@brick_layers = 18
|
|
13
|
-
@brick_width, @brick_height, @brick_depth = 60, 25, 25
|
|
14
|
-
@radius = 175.0
|
|
15
|
-
@angle = 0
|
|
16
|
-
@brick = Cubeish.new(@brick_width, @brick_height, @brick_depth)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
def draw
|
|
20
|
-
background 0
|
|
21
|
-
@temp_y = 0
|
|
22
|
-
fill 182, 62, 29
|
|
23
|
-
no_stroke
|
|
24
|
-
lights
|
|
25
|
-
translate(width / 2.0, height * 1.2, -380) # move viewpoint into position
|
|
26
|
-
rotate_x(-45.radians) # tip tower to see inside
|
|
27
|
-
rotate_y(frame_count * PI / 600) # slowly rotate tower
|
|
28
|
-
brick_layers.times { |i| draw_layer(i) }
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def draw_layer(layer_num)
|
|
32
|
-
@layer_num = layer_num
|
|
33
|
-
@temp_y -= @brick_height # increment rows
|
|
34
|
-
@angle = 360.0 / bricks_per_layer * layer_num / 2.0 # alternate brick seams
|
|
35
|
-
bricks_per_layer.times { |i| draw_bricks(i) }
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def draw_bricks(brick_num)
|
|
39
|
-
temp_z = cos(angle.radians) * radius
|
|
40
|
-
temp_x = sin(angle.radians) * radius
|
|
41
|
-
push_matrix
|
|
42
|
-
translate temp_x, temp_y, temp_z
|
|
43
|
-
rotate_y(angle.radians)
|
|
44
|
-
top_layer = layer_num == brick_layers - 1
|
|
45
|
-
brick.create unless top_layer # main tower
|
|
46
|
-
brick.create if top_layer && brick_num.even? # add crenelation
|
|
47
|
-
pop_matrix
|
|
48
|
-
@angle += 360.0 / bricks_per_layer
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# The Cubeish class works a little different than the cube in the
|
|
53
|
-
# Processing example. SIDES tells you where the negative numbers go.
|
|
54
|
-
# We dynamically create each of the PVectors by passing in the
|
|
55
|
-
# appropriate signs.
|
|
56
|
-
class Cubeish
|
|
57
|
-
include Processing::Proxy
|
|
58
|
-
attr_reader :vertices, :w, :h, :d
|
|
59
|
-
|
|
60
|
-
SIDES = {front: ['-- ', ' - ', ' ', '- '],
|
|
61
|
-
left: ['-- ', '---', '- -', '- '],
|
|
62
|
-
right: [' - ', ' --', ' -', ' '],
|
|
63
|
-
back: ['---', ' --', ' -', '- -'],
|
|
64
|
-
top: ['-- ', '---', ' --', ' - '],
|
|
65
|
-
bottom: ['- ', '- -', ' -', ' ']}
|
|
66
|
-
|
|
67
|
-
SIGNS = {'-' => -1, ' ' => 1}
|
|
68
|
-
|
|
69
|
-
def initialize(width, height, depth)
|
|
70
|
-
@vertices = {}
|
|
71
|
-
@w, @h, @d = width, height, depth
|
|
72
|
-
SIDES.each do |side, signs|
|
|
73
|
-
vertices[side] = signs.map do |s|
|
|
74
|
-
s = s.split('').map { |el| SIGNS[el] }
|
|
75
|
-
Vect.new(s[0] * w / 2, s[1] * h / 2, s[2] * d/2)
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
def create
|
|
81
|
-
vertices.each do |name, vectors|
|
|
82
|
-
begin_shape QUADS
|
|
83
|
-
vectors.each { |v| vertex(v.x, v.y, v.z) }
|
|
84
|
-
end_shape
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
Vect = Struct.new(:x, :y, :z)
|