ruby-processing 2.6.3 → 2.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rpextras.jar +0 -0
- data/lib/ruby-processing/app.rb +56 -48
- data/lib/ruby-processing/helper_methods.rb +11 -12
- data/lib/ruby-processing/library_loader.rb +19 -10
- data/lib/ruby-processing/runner.rb +49 -36
- data/lib/ruby-processing/version.rb +1 -1
- data/lib/templates/application/run.erb +3 -0
- data/library/boids/boids.rb +36 -32
- data/vendors/Rakefile +36 -7
- metadata +3 -734
- data/samples/Rakefile +0 -21
- data/samples/configRP5/configRP5.pde +0 -147
- data/samples/contributed/Rakefile +0 -30
- data/samples/contributed/animator.rb +0 -48
- data/samples/contributed/bezier_playground.rb +0 -204
- data/samples/contributed/circle_collision.rb +0 -129
- data/samples/contributed/drawolver.rb +0 -96
- data/samples/contributed/elegant_ball.rb +0 -165
- data/samples/contributed/empathy.rb +0 -78
- data/samples/contributed/fern.rb +0 -51
- data/samples/contributed/fibonacci_sphere.rb +0 -86
- data/samples/contributed/flight_patterns.rb +0 -63
- data/samples/contributed/full_screen.rb +0 -29
- data/samples/contributed/getting_started.rb +0 -24
- data/samples/contributed/grapher.rb +0 -36
- data/samples/contributed/gravity.rb +0 -106
- data/samples/contributed/jwishy.rb +0 -95
- data/samples/contributed/mandelbrot.rb +0 -79
- data/samples/contributed/orbit.rb +0 -41
- data/samples/contributed/quadraticvertex.rb +0 -106
- data/samples/contributed/re_sample.rb +0 -27
- data/samples/contributed/reflection.rb +0 -17
- data/samples/contributed/tree.rb +0 -72
- data/samples/external_library/java_processing/README +0 -3
- data/samples/external_library/java_processing/box2d_processing/bumpy_surface_noise.rb +0 -52
- data/samples/external_library/java_processing/box2d_processing/data/java_args.txt +0 -2
- data/samples/external_library/java_processing/box2d_processing/library/custom_shape/custom_shape.rb +0 -158
- data/samples/external_library/java_processing/box2d_processing/library/particle_system/particle_system.rb +0 -209
- data/samples/external_library/java_processing/box2d_processing/library/surface/surface.rb +0 -154
- data/samples/external_library/java_processing/box2d_processing/liquidy.rb +0 -58
- data/samples/external_library/java_processing/box2d_processing/polygons.rb +0 -53
- data/samples/external_library/java_processing/custom/README.md +0 -16
- data/samples/external_library/java_processing/custom/Rakefile +0 -22
- data/samples/external_library/java_processing/custom/ext/nn/Connection.java +0 -47
- data/samples/external_library/java_processing/custom/ext/nn/HiddenNeuron.java +0 -20
- data/samples/external_library/java_processing/custom/ext/nn/InputNeuron.java +0 -23
- data/samples/external_library/java_processing/custom/ext/nn/Network.java +0 -136
- data/samples/external_library/java_processing/custom/ext/nn/Neuron.java +0 -79
- data/samples/external_library/java_processing/custom/ext/nn/OutputNeuron.java +0 -7
- data/samples/external_library/java_processing/custom/landscape.rb +0 -60
- data/samples/external_library/java_processing/custom/xor.rb +0 -88
- data/samples/external_library/java_processing/fisica/README +0 -1
- data/samples/external_library/java_processing/fisica/bubbles.rb +0 -80
- data/samples/external_library/java_processing/fisica/joints.rb +0 -112
- data/samples/external_library/java_processing/fisica/polygons.rb +0 -79
- data/samples/external_library/java_processing/fisica/raycast.rb +0 -61
- data/samples/external_library/java_processing/generative_design/mesh_example.rb +0 -25
- data/samples/external_library/java_processing/generative_design/node_spring_attractor.rb +0 -83
- data/samples/external_library/java_processing/generative_design/sub_class_example.rb +0 -44
- data/samples/external_library/java_processing/geomerative/data/FreeSans.ttf +0 -0
- data/samples/external_library/java_processing/geomerative/data/Toucan.svg +0 -43
- data/samples/external_library/java_processing/geomerative/hello_bot_ignore_styles.rb +0 -38
- data/samples/external_library/java_processing/geomerative/hello_world_rotate_firstletter.rb +0 -43
- data/samples/external_library/java_processing/geomerative/hola_mundo.rb +0 -37
- data/samples/external_library/java_processing/grafica/data/OktoberfestVSGermanElections.csv +0 -118
- data/samples/external_library/java_processing/grafica/default_plot.rb +0 -30
- data/samples/external_library/java_processing/grafica/multiple_panels.rb +0 -117
- data/samples/external_library/java_processing/grafica/oktoberfest_example.rb +0 -83
- data/samples/external_library/java_processing/guido/slider.rb +0 -54
- data/samples/external_library/java_processing/hemesh/data/java_args.txt +0 -2
- data/samples/external_library/java_processing/hemesh/library/vbo/mesh_to_vbo.rb +0 -43
- data/samples/external_library/java_processing/hemesh/twin_iso.rb +0 -69
- data/samples/external_library/java_processing/pbox2d/bumpy_surface_noise.rb +0 -57
- data/samples/external_library/java_processing/pbox2d/contact_test.rb +0 -23
- data/samples/external_library/java_processing/pbox2d/data/java_args.txt +0 -2
- data/samples/external_library/java_processing/pbox2d/library/custom_shape/custom_shape.rb +0 -158
- data/samples/external_library/java_processing/pbox2d/library/particle_system/particle_system.rb +0 -212
- data/samples/external_library/java_processing/pbox2d/library/surface/surface.rb +0 -154
- data/samples/external_library/java_processing/pbox2d/liquidy.rb +0 -58
- data/samples/external_library/java_processing/pbox2d/polygons.rb +0 -58
- data/samples/external_library/java_processing/peasy_cam/hello_peasy.rb +0 -29
- data/samples/external_library/java_processing/peasy_cam/hilbert_fractal.rb +0 -34
- data/samples/external_library/java_processing/peasy_cam/library/hilbert/hilbert.rb +0 -100
- data/samples/external_library/java_processing/proscene/cad_camera.rb +0 -57
- data/samples/external_library/java_processing/proscene/camera_customization.rb +0 -114
- data/samples/external_library/java_processing/proscene/data/ti_yong.png +0 -0
- data/samples/external_library/java_processing/toxiclibs/data/ti_yong.png +0 -0
- data/samples/external_library/java_processing/toxiclibs/gray_scott_image.rb +0 -79
- data/samples/external_library/java_processing/toxiclibs/gray_scott_tone_map.rb +0 -78
- data/samples/external_library/java_processing/toxiclibs/implicit.rb +0 -143
- data/samples/external_library/java_processing/toxiclibs/library/vbo/mesh_to_vbo.rb +0 -52
- data/samples/external_library/java_processing/toxiclibs/library/vbo/vbo.rb +0 -52
- data/samples/external_library/java_processing/toxiclibs/model_align.rb +0 -48
- data/samples/external_library/ruby_gem/README +0 -12
- data/samples/external_library/ruby_gem/data/README.txt +0 -1
- data/samples/external_library/ruby_gem/data/data.json +0 -8
- data/samples/external_library/ruby_gem/data/java_args.txt +0 -2
- data/samples/external_library/ruby_gem/draw_test.rb +0 -171
- data/samples/external_library/ruby_gem/game_of_life.rb +0 -127
- data/samples/external_library/ruby_gem/mdarray_test.rb +0 -28
- data/samples/processing_app/ABOUT +0 -3
- data/samples/processing_app/basics/arrays/array.rb +0 -35
- data/samples/processing_app/basics/arrays/array_2d.rb +0 -32
- data/samples/processing_app/basics/arrays/array_objects.rb +0 -62
- data/samples/processing_app/basics/camera/move_eye.rb +0 -24
- data/samples/processing_app/basics/camera/perspective.rb +0 -36
- data/samples/processing_app/basics/color/blend_color.rb +0 -17
- data/samples/processing_app/basics/color/brightness.rb +0 -24
- data/samples/processing_app/basics/color/color_wheel.rb +0 -90
- data/samples/processing_app/basics/color/creating.rb +0 -48
- data/samples/processing_app/basics/color/hue.rb +0 -23
- data/samples/processing_app/basics/color/linear_gradient.rb +0 -42
- data/samples/processing_app/basics/color/radial_gradient.rb +0 -44
- data/samples/processing_app/basics/color/reading/data/cait.jpg +0 -0
- data/samples/processing_app/basics/color/reading/reading.rb +0 -29
- data/samples/processing_app/basics/color/relativity.rb +0 -25
- data/samples/processing_app/basics/color/saturation.rb +0 -24
- data/samples/processing_app/basics/color/wave_gradient.rb +0 -34
- data/samples/processing_app/basics/control/conditionals1.rb +0 -27
- data/samples/processing_app/basics/control/conditionals2.rb +0 -39
- data/samples/processing_app/basics/control/embedded_iteration.rb +0 -34
- data/samples/processing_app/basics/control/iteration.rb +0 -50
- data/samples/processing_app/basics/control/logical_operators.rb +0 -56
- data/samples/processing_app/basics/data/characters_strings.rb +0 -50
- data/samples/processing_app/basics/data/datatype_conversion.rb +0 -41
- data/samples/processing_app/basics/data/integers_floats.rb +0 -28
- data/samples/processing_app/basics/data/true_false.rb +0 -31
- data/samples/processing_app/basics/data/variable_scope.rb +0 -74
- data/samples/processing_app/basics/data/variables.rb +0 -35
- data/samples/processing_app/basics/form/bezier.rb +0 -20
- data/samples/processing_app/basics/form/bezier_ellipse.rb +0 -99
- data/samples/processing_app/basics/form/brick_tower.rb +0 -89
- data/samples/processing_app/basics/form/cubic_grid.rb +0 -39
- data/samples/processing_app/basics/form/icosahedra.rb +0 -39
- data/samples/processing_app/basics/form/library/icosahedron/icosahedron.rb +0 -60
- data/samples/processing_app/basics/form/pie_chart.rb +0 -27
- data/samples/processing_app/basics/form/points_lines.rb +0 -32
- data/samples/processing_app/basics/form/primitives.rb +0 -28
- data/samples/processing_app/basics/form/regular_polygon.rb +0 -46
- data/samples/processing_app/basics/form/rgb_cube.rb +0 -68
- data/samples/processing_app/basics/form/shape_primitives.rb +0 -23
- data/samples/processing_app/basics/form/shape_transform.rb +0 -83
- data/samples/processing_app/basics/form/star.rb +0 -48
- data/samples/processing_app/basics/form/toroid.rb +0 -108
- data/samples/processing_app/basics/form/triangle_strip.rb +0 -39
- data/samples/processing_app/basics/form/vertices.rb +0 -47
- data/samples/processing_app/basics/image/alphamask.rb +0 -17
- data/samples/processing_app/basics/image/background_image.rb +0 -24
- data/samples/processing_app/basics/image/create_image.rb +0 -17
- data/samples/processing_app/basics/image/data/construct.jpg +0 -0
- data/samples/processing_app/basics/image/data/eames.jpg +0 -0
- data/samples/processing_app/basics/image/data/jelly.jpg +0 -0
- data/samples/processing_app/basics/image/data/mask.jpg +0 -0
- data/samples/processing_app/basics/image/data/milan_rubbish.jpg +0 -0
- data/samples/processing_app/basics/image/data/teddy.gif +0 -0
- data/samples/processing_app/basics/image/data/test.jpg +0 -0
- data/samples/processing_app/basics/image/data/wash.jpg +0 -0
- data/samples/processing_app/basics/image/data/ystone08.jpg +0 -0
- data/samples/processing_app/basics/image/extrusion.rb +0 -46
- data/samples/processing_app/basics/image/load_display_image.rb +0 -18
- data/samples/processing_app/basics/image/pointillism.rb +0 -24
- data/samples/processing_app/basics/image/request_image.rb +0 -62
- data/samples/processing_app/basics/image/sprite.rb +0 -32
- data/samples/processing_app/basics/image/transparency.rb +0 -21
- data/samples/processing_app/basics/image/zoom.rb +0 -59
- data/samples/processing_app/basics/input/clock.rb +0 -46
- data/samples/processing_app/basics/input/constrain.rb +0 -33
- data/samples/processing_app/basics/input/easing.rb +0 -31
- data/samples/processing_app/basics/input/keyboard.rb +0 -24
- data/samples/processing_app/basics/input/keyboard_functions.rb +0 -59
- data/samples/processing_app/basics/input/milliseconds.rb +0 -20
- data/samples/processing_app/basics/input/mouse_1d.rb +0 -27
- data/samples/processing_app/basics/input/mouse_2d.rb +0 -19
- data/samples/processing_app/basics/input/mouse_functions.rb +0 -68
- data/samples/processing_app/basics/input/mouse_press.rb +0 -15
- data/samples/processing_app/basics/input/mouse_signals.rb +0 -40
- data/samples/processing_app/basics/input/storing_input.rb +0 -38
- data/samples/processing_app/basics/lights/directional.rb +0 -37
- data/samples/processing_app/basics/lights/lights1.rb +0 -35
- data/samples/processing_app/basics/lights/lights2.rb +0 -38
- data/samples/processing_app/basics/lights/reflection.rb +0 -35
- data/samples/processing_app/basics/lights/spot.rb +0 -36
- data/samples/processing_app/basics/math/additive_wave.rb +0 -64
- data/samples/processing_app/basics/math/arctangent.rb +0 -44
- data/samples/processing_app/basics/math/distance1.rb +0 -53
- data/samples/processing_app/basics/math/distance2.rb +0 -22
- data/samples/processing_app/basics/math/double_random.rb +0 -31
- data/samples/processing_app/basics/math/graphing_2_d_equation.rb +0 -39
- data/samples/processing_app/basics/math/increment_decrement.rb +0 -54
- data/samples/processing_app/basics/math/interpolate.rb +0 -34
- data/samples/processing_app/basics/math/modulo.rb +0 -39
- data/samples/processing_app/basics/math/noise_1_d.rb +0 -21
- data/samples/processing_app/basics/math/noise_2_d.rb +0 -30
- data/samples/processing_app/basics/math/noise_3_d.rb +0 -30
- data/samples/processing_app/basics/math/noise_wave.rb +0 -41
- data/samples/processing_app/basics/math/operator_precedence.rb +0 -49
- data/samples/processing_app/basics/math/polar_to_cartesian.rb +0 -31
- data/samples/processing_app/basics/math/random.rb +0 -21
- data/samples/processing_app/basics/math/random_gaussian.rb +0 -23
- data/samples/processing_app/basics/math/sine.rb +0 -35
- data/samples/processing_app/basics/math/sine_cosine.rb +0 -48
- data/samples/processing_app/basics/math/sine_wave.rb +0 -43
- data/samples/processing_app/basics/objects/composite_objects.rb +0 -113
- data/samples/processing_app/basics/objects/inheritance.rb +0 -84
- data/samples/processing_app/basics/objects/inheritance_two.rb +0 -88
- data/samples/processing_app/basics/objects/module.rb +0 -89
- data/samples/processing_app/basics/objects/module_two.rb +0 -111
- data/samples/processing_app/basics/objects/multiple_constructors.rb +0 -58
- data/samples/processing_app/basics/objects/objects.rb +0 -57
- data/samples/processing_app/basics/objects/struct.rb +0 -38
- data/samples/processing_app/basics/shape/data/bot1.svg +0 -160
- data/samples/processing_app/basics/shape/data/rocket.mtl +0 -8
- data/samples/processing_app/basics/shape/data/rocket.obj +0 -1688
- data/samples/processing_app/basics/shape/data/rocket.png +0 -0
- data/samples/processing_app/basics/shape/data/usa-wikipedia.svg +0 -452
- data/samples/processing_app/basics/shape/disable_style.rb +0 -32
- data/samples/processing_app/basics/shape/get_child.rb +0 -40
- data/samples/processing_app/basics/shape/load_display_obj.rb +0 -25
- data/samples/processing_app/basics/shape/load_display_shape.rb +0 -20
- data/samples/processing_app/basics/shape/load_display_svg.rb +0 -22
- data/samples/processing_app/basics/shape/scale_shape.rb +0 -23
- data/samples/processing_app/basics/structure/coordinates.rb +0 -42
- data/samples/processing_app/basics/structure/create_graphics.rb +0 -29
- data/samples/processing_app/basics/structure/functions.rb +0 -29
- data/samples/processing_app/basics/structure/loop.rb +0 -30
- data/samples/processing_app/basics/structure/noloop.rb +0 -21
- data/samples/processing_app/basics/structure/recursion1.rb +0 -27
- data/samples/processing_app/basics/structure/recursion2.rb +0 -23
- data/samples/processing_app/basics/structure/redraw.rb +0 -25
- data/samples/processing_app/basics/structure/setup_draw.rb +0 -19
- data/samples/processing_app/basics/structure/statements_comments.rb +0 -26
- data/samples/processing_app/basics/structure/width_height.rb +0 -22
- data/samples/processing_app/basics/textures/data/berlin-1.jpg +0 -0
- data/samples/processing_app/basics/textures/texture1.rb +0 -28
- data/samples/processing_app/basics/textures/texture2.rb +0 -33
- data/samples/processing_app/basics/textures/texture3.rb +0 -44
- data/samples/processing_app/basics/textures/texture_cube.rb +0 -86
- data/samples/processing_app/basics/transform/arm.rb +0 -32
- data/samples/processing_app/basics/transform/bird.rb +0 -57
- data/samples/processing_app/basics/transform/birds.rb +0 -29
- data/samples/processing_app/basics/transform/cubes_in_cube.rb +0 -102
- data/samples/processing_app/basics/transform/library/bird/bird.rb +0 -87
- data/samples/processing_app/basics/transform/library/cube/cube.rb +0 -55
- data/samples/processing_app/basics/transform/rotate.rb +0 -34
- data/samples/processing_app/basics/transform/rotate1.rb +0 -27
- data/samples/processing_app/basics/transform/rotate_push_pop.rb +0 -35
- data/samples/processing_app/basics/transform/rotate_x_y.rb +0 -36
- data/samples/processing_app/basics/transform/scale.rb +0 -29
- data/samples/processing_app/basics/transform/translate.rb +0 -27
- data/samples/processing_app/basics/transform/triangle_flower.rb +0 -52
- data/samples/processing_app/basics/typography/data/CourierNew36.vlw +0 -0
- data/samples/processing_app/basics/typography/data/Univers45.vlw +0 -0
- data/samples/processing_app/basics/typography/data/Ziggurat-HTF-Black-32.vlw +0 -0
- data/samples/processing_app/basics/typography/kinetic_type.rb +0 -76
- data/samples/processing_app/basics/typography/letters.rb +0 -34
- data/samples/processing_app/basics/typography/words.rb +0 -36
- data/samples/processing_app/basics/web/embedded_links.rb +0 -52
- data/samples/processing_app/basics/web/loading_images.rb +0 -15
- data/samples/processing_app/demos/graphics/bezier_patch.rb +0 -177
- data/samples/processing_app/demos/graphics/data/frag.glsl +0 -30
- data/samples/processing_app/demos/graphics/data/java_args.txt +0 -2
- data/samples/processing_app/demos/graphics/data/mercury.jpg +0 -0
- data/samples/processing_app/demos/graphics/data/planet.jpg +0 -0
- data/samples/processing_app/demos/graphics/data/starfield.jpg +0 -0
- data/samples/processing_app/demos/graphics/data/sun.jpg +0 -0
- data/samples/processing_app/demos/graphics/data/vert.glsl +0 -31
- data/samples/processing_app/demos/graphics/low_level_gl.rb +0 -72
- data/samples/processing_app/demos/graphics/planets.rb +0 -51
- data/samples/processing_app/demos/graphics/trefoil.rb +0 -152
- data/samples/processing_app/demos/graphics/wiggling.rb +0 -287
- data/samples/processing_app/demos/performance/cubic_grid_retained.rb +0 -58
- data/samples/processing_app/demos/performance/data/java_args.txt +0 -1
- data/samples/processing_app/demos/performance/esfera.rb +0 -93
- data/samples/processing_app/demos/performance/text_rendering.rb +0 -14
- data/samples/processing_app/demos/tests/no_background_test.rb +0 -10
- data/samples/processing_app/demos/tests/offscreen_test.rb +0 -34
- data/samples/processing_app/demos/tests/redraw_test.rb +0 -14
- data/samples/processing_app/demos/tests/resize_test.rb +0 -10
- data/samples/processing_app/demos/tests/restart_test.rb +0 -22
- data/samples/processing_app/demos/tests/smooth_test.rb +0 -27
- data/samples/processing_app/demos/tests/specs_test.rb +0 -11
- data/samples/processing_app/library/dxf/simple_export.rb +0 -48
- data/samples/processing_app/library/fastmath/clock.rb +0 -46
- data/samples/processing_app/library/file_chooser/image_viewer.rb +0 -23
- data/samples/processing_app/library/minim/filter_example.rb +0 -65
- data/samples/processing_app/library/minim/frequency_modulation.rb +0 -64
- data/samples/processing_app/library/minim/sequence_sound.rb +0 -59
- data/samples/processing_app/library/minim/synthesize_sound.rb +0 -35
- data/samples/processing_app/library/movie/README +0 -1
- data/samples/processing_app/library/movie/data/transit.mkv +0 -0
- data/samples/processing_app/library/movie/data/transit.mov +0 -0
- data/samples/processing_app/library/movie/loop.rb +0 -24
- data/samples/processing_app/library/movie/pixelate.rb +0 -50
- data/samples/processing_app/library/movie/reverse.rb +0 -47
- data/samples/processing_app/library/movie/scratch.rb +0 -36
- data/samples/processing_app/library/movie/speed.rb +0 -33
- data/samples/processing_app/library/net/HTTPClient.rb +0 -33
- data/samples/processing_app/library/pdf/complex_3D.rb +0 -162
- data/samples/processing_app/library/pdf/large_page.rb +0 -25
- data/samples/processing_app/library/pdf/many_frames.rb +0 -33
- data/samples/processing_app/library/pdf/many_pages.rb +0 -31
- data/samples/processing_app/library/pdf/many_pdfs.rb +0 -37
- data/samples/processing_app/library/pdf/one_frame.rb +0 -19
- data/samples/processing_app/library/vecmath/arcball/Rakefile +0 -30
- data/samples/processing_app/library/vecmath/arcball/arcball_box.rb +0 -23
- data/samples/processing_app/library/vecmath/arcball/arcball_radius.rb +0 -23
- data/samples/processing_app/library/vecmath/arcball/arcball_shape.rb +0 -29
- data/samples/processing_app/library/vecmath/vec2d/README.txt +0 -2
- data/samples/processing_app/library/vecmath/vec2d/Rakefile +0 -30
- data/samples/processing_app/library/vecmath/vec2d/acceleration_with_vectors.rb +0 -74
- data/samples/processing_app/library/vecmath/vec2d/bouncing_ball.rb +0 -45
- data/samples/processing_app/library/vecmath/vec2d/circle_collision.rb +0 -169
- data/samples/processing_app/library/vecmath/vec2d/data/java_args.txt +0 -2
- data/samples/processing_app/library/vecmath/vec2d/data/sprite.png +0 -0
- data/samples/processing_app/library/vecmath/vec2d/data/texture.png +0 -0
- data/samples/processing_app/library/vecmath/vec2d/flocking.rb +0 -30
- data/samples/processing_app/library/vecmath/vec2d/library/flock/flock.rb +0 -191
- data/samples/processing_app/library/vecmath/vec2d/library/particle/particle.rb +0 -113
- data/samples/processing_app/library/vecmath/vec2d/library/tile/tile.rb +0 -85
- data/samples/processing_app/library/vecmath/vec2d/morph.rb +0 -87
- data/samples/processing_app/library/vecmath/vec2d/particle_system_pshape.rb +0 -36
- data/samples/processing_app/library/vecmath/vec2d/penrose.rb +0 -71
- data/samples/processing_app/library/vecmath/vec2d/reflection1.rb +0 -108
- data/samples/processing_app/library/vecmath/vec2d/seeking_neural.rb +0 -169
- data/samples/processing_app/library/vecmath/vec2d/simple_particle_system.rb +0 -85
- data/samples/processing_app/library/vecmath/vec2d/vector_math.rb +0 -39
- data/samples/processing_app/library/vecmath/vec2d/wiggle_pshape.rb +0 -74
- data/samples/processing_app/library/vecmath/vec3d/Rakefile +0 -30
- data/samples/processing_app/library/vecmath/vec3d/drawolver.rb +0 -86
- data/samples/processing_app/library/vecmath/vec3d/frame_of_reference.rb +0 -103
- data/samples/processing_app/library/vecmath/vec3d/hilbert_fractal.rb +0 -37
- data/samples/processing_app/library/vecmath/vec3d/library/geometry/geometry.rb +0 -3
- data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/cylinder.rb +0 -44
- data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/mat4.rb +0 -28
- data/samples/processing_app/library/vecmath/vec3d/library/geometry/lib/plane.rb +0 -60
- data/samples/processing_app/library/vecmath/vec3d/library/hilbert/hilbert.rb +0 -84
- data/samples/processing_app/library/vecmath/vec3d/note.txt +0 -1
- data/samples/processing_app/library/vecmath/vec3d/retained_menger.rb +0 -115
- data/samples/processing_app/topics/advanced_data/README +0 -1
- data/samples/processing_app/topics/advanced_data/Rakefile +0 -30
- data/samples/processing_app/topics/advanced_data/counting_words.rb +0 -79
- data/samples/processing_app/topics/advanced_data/data/Georgia.ttf +0 -0
- data/samples/processing_app/topics/advanced_data/data/Merriweather-Light.ttf +0 -0
- data/samples/processing_app/topics/advanced_data/data/a000 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a001 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a002 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a003 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a004 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a005 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a006 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a007 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a008 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a009 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a010 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a011 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a012 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a013 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a014 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a015 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a016 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a017 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a018 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a019 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a020 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a021 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a022 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a023 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a024 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a025 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a026 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a027 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a028 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a029 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a030 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a031 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a032 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a033 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a034 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a035 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a036 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a037 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a038 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a039 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a040 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a041 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a042 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a043 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a044 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a045 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a046 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a047 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a048 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a049 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a050 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a051 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a052 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a053 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a054 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a055 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a056 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a057 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a058 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a059 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a060 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a061 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a062 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a063 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a064 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a065 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a066 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a067 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a068 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a069 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a070 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a071 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a072 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a073 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a074 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a075 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a076 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a077 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a078 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a079 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a080 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a081 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a082 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a083 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a084 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a085 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a086 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a087 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a088 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a089 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a090 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a091 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a092 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a093 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a094 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a095 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a096 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a097 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a098 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a099 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a100 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a101 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a102 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a103 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a104 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a105 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a106 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a107 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a108 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a109 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a110 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a111 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a112 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a113 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a114 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/a115 copy.jpg +0 -0
- data/samples/processing_app/topics/advanced_data/data/data.csv +0 -5
- data/samples/processing_app/topics/advanced_data/data/data.json +0 -36
- data/samples/processing_app/topics/advanced_data/data/data.xml +0 -23
- data/samples/processing_app/topics/advanced_data/data/data.yml +0 -22
- data/samples/processing_app/topics/advanced_data/data/dracula.txt +0 -16624
- data/samples/processing_app/topics/advanced_data/data/frankenstein.txt +0 -7652
- data/samples/processing_app/topics/advanced_data/data/struct_data.yml +0 -27
- data/samples/processing_app/topics/advanced_data/library/bubble/bubble.rb +0 -45
- data/samples/processing_app/topics/advanced_data/library/word/word.rb +0 -64
- data/samples/processing_app/topics/advanced_data/load_save_XML.rb +0 -113
- data/samples/processing_app/topics/advanced_data/load_save_json.rb +0 -93
- data/samples/processing_app/topics/advanced_data/load_save_struct_yaml.rb +0 -84
- data/samples/processing_app/topics/advanced_data/load_save_table.rb +0 -85
- data/samples/processing_app/topics/advanced_data/load_save_yaml.rb +0 -87
- data/samples/processing_app/topics/advanced_data/regex.rb +0 -46
- data/samples/processing_app/topics/advanced_data/threads.rb +0 -96
- data/samples/processing_app/topics/advanced_data/threads_two.rb +0 -52
- data/samples/processing_app/topics/advanced_data/word_frequency.rb +0 -80
- data/samples/processing_app/topics/advanced_data/yahoo_weather.rb +0 -39
- data/samples/processing_app/topics/animation/README.txt +0 -1
- data/samples/processing_app/topics/animation/animated_sprite.rb +0 -57
- data/samples/processing_app/topics/animation/data/PT_Shifty_0000.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0001.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0002.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0003.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0004.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0005.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0006.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0007.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0008.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0009.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0010.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0011.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0012.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0013.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0014.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0015.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0016.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0017.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0018.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0019.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0020.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0021.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0022.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0023.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0024.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0025.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0026.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0027.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0028.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0029.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0030.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0031.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0032.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0033.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0034.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0035.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0036.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Shifty_0037.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0000.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0001.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0002.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0003.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0004.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0005.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0006.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0007.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0008.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0009.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0010.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0011.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0012.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0013.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0014.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0015.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0016.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0017.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0018.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0019.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0020.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0021.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0022.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0023.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0024.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0025.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0026.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0027.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0028.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0029.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0030.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0031.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0032.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0033.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0034.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0035.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0036.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0037.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0038.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0039.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0040.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0041.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0042.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0043.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0044.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0045.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0046.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0047.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0048.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0049.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0050.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0051.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0052.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0053.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0054.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0055.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0056.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0057.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0058.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_Teddy_0059.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0000.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0001.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0002.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0003.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0004.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0005.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0006.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0007.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0008.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0009.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0010.gif +0 -0
- data/samples/processing_app/topics/animation/data/PT_anim0011.gif +0 -0
- data/samples/processing_app/topics/animation/sequential.rb +0 -41
- data/samples/processing_app/topics/cellular_automata/game_of_life.rb +0 -125
- data/samples/processing_app/topics/cellular_automata/library/ca/ca.rb +0 -91
- data/samples/processing_app/topics/cellular_automata/library/cell/cell.rb +0 -99
- data/samples/processing_app/topics/cellular_automata/library/simple_cell/simple_cell.rb +0 -46
- data/samples/processing_app/topics/cellular_automata/spore1.rb +0 -94
- data/samples/processing_app/topics/cellular_automata/spore2.rb +0 -101
- data/samples/processing_app/topics/cellular_automata/wolfram.rb +0 -42
- data/samples/processing_app/topics/create_shapes/begin_end_contour.rb +0 -44
- data/samples/processing_app/topics/create_shapes/data/sprite.png +0 -0
- data/samples/processing_app/topics/create_shapes/group_pshape.rb +0 -69
- data/samples/processing_app/topics/create_shapes/library/particle/particle_system.rb +0 -107
- data/samples/processing_app/topics/create_shapes/library/polygon/polygon.rb +0 -35
- data/samples/processing_app/topics/create_shapes/library/star/star.rb +0 -47
- data/samples/processing_app/topics/create_shapes/library/wiggler/wiggler.rb +0 -57
- data/samples/processing_app/topics/create_shapes/particle_system_pshape.rb +0 -38
- data/samples/processing_app/topics/create_shapes/path_pshape.rb +0 -38
- data/samples/processing_app/topics/create_shapes/polygon_pshape_oo3.rb +0 -56
- data/samples/processing_app/topics/create_shapes/polygon_pshape_oop.rb +0 -29
- data/samples/processing_app/topics/create_shapes/polygon_pshape_oop2.rb +0 -52
- data/samples/processing_app/topics/create_shapes/polygon_shape.rb +0 -42
- data/samples/processing_app/topics/create_shapes/primitive_pshape.rb +0 -29
- data/samples/processing_app/topics/create_shapes/wiggle_pshape.rb +0 -23
- data/samples/processing_app/topics/drawing/continuous_lines.rb +0 -17
- data/samples/processing_app/topics/drawing/pattern.rb +0 -30
- data/samples/processing_app/topics/drawing/pulses.rb +0 -33
- data/samples/processing_app/topics/drawing/scribble_plotter.rb +0 -77
- data/samples/processing_app/topics/effects/data/red_smoke.jpg +0 -0
- data/samples/processing_app/topics/effects/lens.rb +0 -94
- data/samples/processing_app/topics/file_io/data/positions.txt +0 -206
- data/samples/processing_app/topics/file_io/load_file1.rb +0 -32
- data/samples/processing_app/topics/file_io/save_frames.rb +0 -70
- data/samples/processing_app/topics/file_io/save_one_image.rb +0 -22
- data/samples/processing_app/topics/file_io/tile_images.rb +0 -37
- data/samples/processing_app/topics/gui/button.rb +0 -74
- data/samples/processing_app/topics/gui/data/seedBottom.jpg +0 -0
- data/samples/processing_app/topics/gui/data/seedTop.jpg +0 -0
- data/samples/processing_app/topics/gui/handles.rb +0 -108
- data/samples/processing_app/topics/gui/rollover.rb +0 -63
- data/samples/processing_app/topics/gui/scrollbar.rb +0 -91
- data/samples/processing_app/topics/image_processing/blending.rb +0 -82
- data/samples/processing_app/topics/image_processing/blur.rb +0 -50
- data/samples/processing_app/topics/image_processing/brightness.rb +0 -39
- data/samples/processing_app/topics/image_processing/convolution.rb +0 -72
- data/samples/processing_app/topics/image_processing/data/eames.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/frontier.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/java_args.txt +0 -3
- data/samples/processing_app/topics/image_processing/data/layer1.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/layer2.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/moon-wide.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/moon.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/sea.jpg +0 -0
- data/samples/processing_app/topics/image_processing/data/ystone08.jpg +0 -0
- data/samples/processing_app/topics/image_processing/edge_detection.rb +0 -47
- data/samples/processing_app/topics/image_processing/explode.rb +0 -35
- data/samples/processing_app/topics/image_processing/extrusion.rb +0 -49
- data/samples/processing_app/topics/image_processing/histogram.rb +0 -43
- data/samples/processing_app/topics/image_processing/linear_image.rb +0 -45
- data/samples/processing_app/topics/image_processing/pixel_array.rb +0 -48
- data/samples/processing_app/topics/image_processing/zoom.rb +0 -66
- data/samples/processing_app/topics/lsystems/Rakefile +0 -30
- data/samples/processing_app/topics/lsystems/chequer.rb +0 -66
- data/samples/processing_app/topics/lsystems/csplant.rb +0 -100
- data/samples/processing_app/topics/lsystems/cstest.rb +0 -25
- data/samples/processing_app/topics/lsystems/data/java_args.txt +0 -3
- data/samples/processing_app/topics/lsystems/david_tour.rb +0 -75
- data/samples/processing_app/topics/lsystems/koch.rb +0 -19
- data/samples/processing_app/topics/lsystems/library/cs_grammar/cs_grammar.rb +0 -82
- data/samples/processing_app/topics/lsystems/library/grammar/grammar.rb +0 -31
- data/samples/processing_app/topics/lsystems/library/koch/koch_fractal.rb +0 -99
- data/samples/processing_app/topics/lsystems/library/stochastic_grammar/stochastic_grammar.rb +0 -56
- data/samples/processing_app/topics/lsystems/mpeano.rb +0 -80
- data/samples/processing_app/topics/lsystems/peano.rb +0 -76
- data/samples/processing_app/topics/lsystems/penrose.rb +0 -117
- data/samples/processing_app/topics/lsystems/penrose_snowflake.rb +0 -88
- data/samples/processing_app/topics/lsystems/pentagonal.rb +0 -100
- data/samples/processing_app/topics/lsystems/snake_kolam.rb +0 -93
- data/samples/processing_app/topics/lsystems/stochastic_test.rb +0 -96
- data/samples/processing_app/topics/lsystems/three_d_tree.rb +0 -109
- data/samples/processing_app/topics/motion/Rakefile +0 -30
- data/samples/processing_app/topics/motion/bounce.rb +0 -40
- data/samples/processing_app/topics/motion/bouncy_bubbles.rb +0 -96
- data/samples/processing_app/topics/motion/brownian.rb +0 -40
- data/samples/processing_app/topics/motion/circle_collision.rb +0 -142
- data/samples/processing_app/topics/motion/cubes_in_cube.rb +0 -62
- data/samples/processing_app/topics/motion/data/java_args.txt +0 -3
- data/samples/processing_app/topics/motion/library/cube/cube.rb +0 -128
- data/samples/processing_app/topics/motion/library/ground/ground.rb +0 -42
- data/samples/processing_app/topics/motion/linear.rb +0 -25
- data/samples/processing_app/topics/motion/morph.rb +0 -84
- data/samples/processing_app/topics/motion/moving_on_curves.rb +0 -46
- data/samples/processing_app/topics/motion/puff.rb +0 -78
- data/samples/processing_app/topics/motion/reflection1.rb +0 -108
- data/samples/processing_app/topics/motion/reflection2.rb +0 -122
- data/samples/processing_app/topics/ruby_hook/hooky.rb +0 -26
- data/samples/processing_app/topics/ruby_hook/subclass.rb +0 -75
- data/samples/processing_app/topics/shaders/README +0 -1
- data/samples/processing_app/topics/shaders/Rakefile +0 -30
- data/samples/processing_app/topics/shaders/blur_filter.rb +0 -25
- data/samples/processing_app/topics/shaders/bw_shader.rb +0 -40
- data/samples/processing_app/topics/shaders/conway.rb +0 -26
- data/samples/processing_app/topics/shaders/data/FishEye.glsl +0 -59
- data/samples/processing_app/topics/shaders/data/GlossyFrag.glsl +0 -44
- data/samples/processing_app/topics/shaders/data/GlossyVert.glsl +0 -33
- data/samples/processing_app/topics/shaders/data/Texture01.jpg +0 -0
- data/samples/processing_app/topics/shaders/data/Texture02.jpg +0 -0
- data/samples/processing_app/topics/shaders/data/ToonFrag.glsl +0 -25
- data/samples/processing_app/topics/shaders/data/ToonVert.glsl +0 -31
- data/samples/processing_app/topics/shaders/data/blur.glsl +0 -42
- data/samples/processing_app/topics/shaders/data/bwfrag.glsl +0 -23
- data/samples/processing_app/topics/shaders/data/conway.glsl +0 -57
- data/samples/processing_app/topics/shaders/data/cubemapfrag.glsl +0 -1
- data/samples/processing_app/topics/shaders/data/cubemapvert.glsl +0 -1
- data/samples/processing_app/topics/shaders/data/deform.glsl +0 -31
- data/samples/processing_app/topics/shaders/data/displaceFrag.glsl +0 -8
- data/samples/processing_app/topics/shaders/data/displaceVert.glsl +0 -201
- data/samples/processing_app/topics/shaders/data/edges.glsl +0 -40
- data/samples/processing_app/topics/shaders/data/java_args.txt +0 -2
- data/samples/processing_app/topics/shaders/data/lachoy.jpg +0 -0
- data/samples/processing_app/topics/shaders/data/landscape.glsl +0 -352
- data/samples/processing_app/topics/shaders/data/leaves.jpg +0 -0
- data/samples/processing_app/topics/shaders/data/mask.glsl +0 -19
- data/samples/processing_app/topics/shaders/data/monjori.glsl +0 -30
- data/samples/processing_app/topics/shaders/data/nebula.glsl +0 -111
- data/samples/processing_app/topics/shaders/data/sep_blur.glsl +0 -59
- data/samples/processing_app/topics/shaders/data/tex1.jpg +0 -0
- data/samples/processing_app/topics/shaders/deform.rb +0 -28
- data/samples/processing_app/topics/shaders/edge_detect.rb +0 -28
- data/samples/processing_app/topics/shaders/glossy_fish_eye.rb +0 -57
- data/samples/processing_app/topics/shaders/glsl_heightmap_noise.rb +0 -125
- data/samples/processing_app/topics/shaders/image_mask.rb +0 -31
- data/samples/processing_app/topics/shaders/landscape.rb +0 -32
- data/samples/processing_app/topics/shaders/monjori.rb +0 -28
- data/samples/processing_app/topics/shaders/nebula.rb +0 -18
- data/samples/processing_app/topics/shaders/sep_blur.rb +0 -64
- data/samples/processing_app/topics/shaders/toon_shading.rb +0 -43
- data/samples/processing_app/topics/simulate/README +0 -1
- data/samples/processing_app/topics/simulate/chain.rb +0 -80
- data/samples/processing_app/topics/simulate/data/java_args.txt +0 -2
- data/samples/processing_app/topics/simulate/data/texture.gif +0 -0
- data/samples/processing_app/topics/simulate/data/texture.png +0 -0
- data/samples/processing_app/topics/simulate/flocking.rb +0 -32
- data/samples/processing_app/topics/simulate/library/flock/flock.rb +0 -203
- data/samples/processing_app/topics/simulate/multiple_particle_systems.rb +0 -133
- data/samples/processing_app/topics/simulate/simple_particle_system.rb +0 -78
- data/samples/processing_app/topics/simulate/smoke_particle_system.rb +0 -125
- data/samples/processing_app/topics/simulate/spring.rb +0 -80
- data/samples/processing_app/topics/simulate/springs.rb +0 -120
- data/samples/processing_app/topics/vectors/acceleration_with_vectors.rb +0 -78
- data/samples/processing_app/topics/vectors/bouncing_ball.rb +0 -50
- data/samples/processing_app/topics/vectors/vector_math.rb +0 -39
@@ -1,152 +0,0 @@
|
|
1
|
-
# Trefoil, by Andres Colubri
|
2
|
-
# A parametric surface is textured procedurally
|
3
|
-
# by drawing on an offscreen PGraphics surface.
|
4
|
-
#
|
5
|
-
# Features (Vec3D).to_normal(renderer) and (Vec3D).to_vertex_uv(renderer, u, v)
|
6
|
-
# see line 62 for inititialization of renderer where obj is an instance of PShape
|
7
|
-
# renderer = ShapeRender.new(obj)
|
8
|
-
|
9
|
-
load_library :vecmath
|
10
|
-
|
11
|
-
attr_reader :pg, :trefoil
|
12
|
-
|
13
|
-
def setup
|
14
|
-
size(1024, 768, P3D)
|
15
|
-
|
16
|
-
texture_mode(NORMAL)
|
17
|
-
no_stroke
|
18
|
-
|
19
|
-
# Creating offscreen surface for 3D rendering.
|
20
|
-
@pg = create_graphics(32, 512, P3D)
|
21
|
-
pg.begin_draw
|
22
|
-
pg.background(0, 0)
|
23
|
-
pg.noStroke
|
24
|
-
pg.fill(255, 0, 0, 200)
|
25
|
-
pg.end_draw
|
26
|
-
|
27
|
-
# Saving trefoil surface into a PShape3D object
|
28
|
-
@trefoil = create_trefoil(350, 60, 15, pg)
|
29
|
-
end
|
30
|
-
|
31
|
-
def draw
|
32
|
-
background(0)
|
33
|
-
|
34
|
-
pg.begin_draw
|
35
|
-
pg.ellipse(rand(0.0..pg.width), rand(0.0..pg.height), 4, 4)
|
36
|
-
pg.end_draw
|
37
|
-
|
38
|
-
ambient(250, 250, 250)
|
39
|
-
pointLight(255, 255, 255, 0, 0, 200)
|
40
|
-
|
41
|
-
push_matrix
|
42
|
-
translate(width/2, height/2, -200)
|
43
|
-
rotate_x(frame_count * PI / 500)
|
44
|
-
rotate_y(frame_count * PI / 500)
|
45
|
-
shape(trefoil)
|
46
|
-
pop_matrix
|
47
|
-
end
|
48
|
-
|
49
|
-
# Code to draw a trefoil knot surface, with normals and texture
|
50
|
-
# coordinates. Makes of the Vec3D Render interface (uses ShapeRender here).
|
51
|
-
# Adapted from the parametric equations example by Philip Rideout:
|
52
|
-
# http://iphone-3d-programming.labs.oreilly.com/ch03.html
|
53
|
-
|
54
|
-
# This function draws a trefoil knot surface as a triangle mesh derived
|
55
|
-
# from its parametric equation.
|
56
|
-
def create_trefoil(s, ny, nx, tex)
|
57
|
-
|
58
|
-
obj = create_shape()
|
59
|
-
|
60
|
-
obj.begin_shape(TRIANGLES)
|
61
|
-
obj.texture(tex)
|
62
|
-
renderer = ShapeRender.new(obj)
|
63
|
-
(0 ... nx).each do |j|
|
64
|
-
u0 = j.to_f / nx
|
65
|
-
u1 = (j + 1).to_f / nx
|
66
|
-
(0 ... ny).each do |i|
|
67
|
-
v0 = i.to_f / ny
|
68
|
-
v1 = (i + 1).to_f / ny
|
69
|
-
|
70
|
-
p0 = eval_point(u0, v0)
|
71
|
-
n0 = eval_normal(u0, v0)
|
72
|
-
|
73
|
-
p1 = eval_point(u0, v1)
|
74
|
-
n1 = eval_normal(u0, v1)
|
75
|
-
|
76
|
-
p2 = eval_point(u1, v1)
|
77
|
-
n2 = eval_normal(u1, v1)
|
78
|
-
|
79
|
-
# Triangle p0-p1-p2
|
80
|
-
n0.to_normal(renderer)
|
81
|
-
(p0 * s).to_vertex_uv(renderer, u0, v0)
|
82
|
-
n1.to_normal(renderer)
|
83
|
-
(p1 * s).to_vertex_uv(renderer, u0, v1)
|
84
|
-
n2.to_normal(renderer)
|
85
|
-
(p2 * s).to_vertex_uv(renderer, u1, v1)
|
86
|
-
|
87
|
-
p1 = eval_point(u1, v0)
|
88
|
-
n1 = eval_normal(u1, v0)
|
89
|
-
|
90
|
-
# Triangle p0-p2-p1
|
91
|
-
n0.to_normal(renderer)
|
92
|
-
(p0 * s).to_vertex_uv(renderer, u0, v0)
|
93
|
-
n2.to_normal(renderer)
|
94
|
-
(p2 * s).to_vertex_uv(renderer, u1, v1)
|
95
|
-
n1.to_normal(renderer)
|
96
|
-
(p1 * s).to_vertex_uv(renderer, u1, v0)
|
97
|
-
end
|
98
|
-
end
|
99
|
-
obj.end_shape
|
100
|
-
return obj
|
101
|
-
end
|
102
|
-
|
103
|
-
# Evaluates the surface normal corresponding to normalized
|
104
|
-
# parameters (u, v)
|
105
|
-
def eval_normal(u, v)
|
106
|
-
# Compute the tangents and their cross product.
|
107
|
-
p = eval_point(u, v)
|
108
|
-
tangU = eval_point(u + 0.01, v)
|
109
|
-
tangV = eval_point(u, v + 0.01)
|
110
|
-
tangU -= p
|
111
|
-
tangV -= p
|
112
|
-
tangV.cross(tangU).normalize! # it is easy to chain Vec3D operations
|
113
|
-
end
|
114
|
-
|
115
|
-
# Evaluates the surface point corresponding to normalized
|
116
|
-
# parameters (u, v)
|
117
|
-
def eval_point(u, v)
|
118
|
-
a = 0.5
|
119
|
-
b = 0.3
|
120
|
-
c = 0.5
|
121
|
-
d = 0.1
|
122
|
-
s = TAU * u
|
123
|
-
t = (TAU * (1 - v)) * 2
|
124
|
-
|
125
|
-
sint = sin(t)
|
126
|
-
cost = cos(t)
|
127
|
-
sint15 = sin(1.5 * t)
|
128
|
-
cost15 = cos(1.5 * t)
|
129
|
-
|
130
|
-
r = a + b * cost15
|
131
|
-
x = r * cost
|
132
|
-
y = r * sint
|
133
|
-
z = c * sint15
|
134
|
-
|
135
|
-
dv = Vec3D.new(
|
136
|
-
-1.5 * b * sint15 * cost - y,
|
137
|
-
-1.5 * b * sint15 * sint + x,
|
138
|
-
1.5 * c * cost15)
|
139
|
-
|
140
|
-
q = dv.normalize # regular normalize creates a new Vec3D for us
|
141
|
-
qvn = Vec3D.new(q.y, -q.x, 0).normalize! # chained Vec3D operations
|
142
|
-
|
143
|
-
ww = q.cross(qvn)
|
144
|
-
|
145
|
-
coss = cos(s)
|
146
|
-
sins = sin(s)
|
147
|
-
|
148
|
-
Vec3D.new(
|
149
|
-
x + d * (qvn.x * coss + ww.x * sins),
|
150
|
-
y + d * (qvn.y * coss + ww.y * sins),
|
151
|
-
z + d * ww.z * sins)
|
152
|
-
end
|
@@ -1,287 +0,0 @@
|
|
1
|
-
# Press 'w' to start wiggling, space to restore
|
2
|
-
# original positions.
|
3
|
-
|
4
|
-
attr_reader :cube, :wiggling
|
5
|
-
CUBE_SIZE = 320.0
|
6
|
-
CIRCLE_RAD = 100.0
|
7
|
-
CIRCLE_RES = 40
|
8
|
-
NOISE_MAG = 1.0
|
9
|
-
|
10
|
-
# signature-specific alias for overloaded method
|
11
|
-
java_alias :background_int, :background, [Java::int]
|
12
|
-
|
13
|
-
attr_reader :sine, :cosine
|
14
|
-
|
15
|
-
def setup
|
16
|
-
size(1024, 768, P3D);
|
17
|
-
@sine = []
|
18
|
-
@cosine = []
|
19
|
-
wiggling = false
|
20
|
-
# Dry up that processing code a tiny bit
|
21
|
-
(0..TAU).step(TAU / CIRCLE_RES) do |i|
|
22
|
-
sine << CIRCLE_RAD * sin(i)
|
23
|
-
end
|
24
|
-
(0..TAU).step(TAU / CIRCLE_RES) do |i|
|
25
|
-
cosine << CIRCLE_RAD * cos(i)
|
26
|
-
end
|
27
|
-
@cube = create_cube
|
28
|
-
end
|
29
|
-
|
30
|
-
def draw
|
31
|
-
background_int(0)
|
32
|
-
|
33
|
-
translate(width/2, height/2)
|
34
|
-
rotate_x(frame_count * 0.01)
|
35
|
-
rotate_y(frame_count * 0.01)
|
36
|
-
|
37
|
-
shape(cube)
|
38
|
-
|
39
|
-
if (wiggling)
|
40
|
-
(0 ... cube.get_child_count).each do |i|
|
41
|
-
face = cube.get_child(i)
|
42
|
-
face.get_vertex_count.times do |j|
|
43
|
-
x, y, z = face.get_vertex_x(j), face.get_vertex_y(j), face.get_vertex_z(j)
|
44
|
-
x += rand(-NOISE_MAG/2..NOISE_MAG/2)
|
45
|
-
y += rand(-NOISE_MAG/2..NOISE_MAG/2)
|
46
|
-
z += rand(-NOISE_MAG/2..NOISE_MAG/2)
|
47
|
-
face.set_vertex(j, x, y, z)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
|
54
|
-
def key_pressed
|
55
|
-
case key
|
56
|
-
when 'w'
|
57
|
-
@wiggling = !wiggling
|
58
|
-
when ' '
|
59
|
-
restore_cube
|
60
|
-
when '1'
|
61
|
-
cube.set_stroke_weight(1)
|
62
|
-
when '2'
|
63
|
-
cube.set_stroke_weight(5)
|
64
|
-
when '3'
|
65
|
-
cube.set_stroke_weight(10)
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
def create_cube
|
70
|
-
cube = create_shape(GROUP)
|
71
|
-
|
72
|
-
# Front face
|
73
|
-
face = create_shape
|
74
|
-
face.begin_shape(POLYGON)
|
75
|
-
face.stroke(255, 0, 0)
|
76
|
-
face.fill(255)
|
77
|
-
face.begin_contour
|
78
|
-
face.vertex(-CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
79
|
-
face.vertex(CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
80
|
-
face.vertex(CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
81
|
-
face.vertex(-CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
82
|
-
face.end_contour
|
83
|
-
face.begin_contour
|
84
|
-
CIRCLE_RES.times do |i|
|
85
|
-
x = sine[i]
|
86
|
-
y = cosine[i]
|
87
|
-
z = CUBE_SIZE / 2
|
88
|
-
face.vertex(x, y, z)
|
89
|
-
end
|
90
|
-
face.end_contour
|
91
|
-
face.end_shape(CLOSE)
|
92
|
-
cube.add_child(face)
|
93
|
-
|
94
|
-
# Back face
|
95
|
-
face = create_shape
|
96
|
-
face.begin_shape(POLYGON)
|
97
|
-
face.stroke(255, 0, 0)
|
98
|
-
face.fill(255)
|
99
|
-
face.begin_contour
|
100
|
-
face.vertex(CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
101
|
-
face.vertex(-CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
102
|
-
face.vertex(-CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
103
|
-
face.vertex(CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
104
|
-
face.end_contour
|
105
|
-
face.begin_contour
|
106
|
-
CIRCLE_RES.times do |i|
|
107
|
-
x = sine[i]
|
108
|
-
y = cosine[i]
|
109
|
-
z = -CUBE_SIZE / 2
|
110
|
-
face.vertex(x, y, z)
|
111
|
-
end
|
112
|
-
face.end_contour
|
113
|
-
face.end_shape(CLOSE)
|
114
|
-
cube.add_child(face)
|
115
|
-
|
116
|
-
# Right face
|
117
|
-
face = create_shape
|
118
|
-
face.begin_shape(POLYGON)
|
119
|
-
face.stroke(255, 0, 0)
|
120
|
-
face.fill(255)
|
121
|
-
face.begin_contour
|
122
|
-
face.vertex(CUBE_SIZE / 2.0, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
123
|
-
face.vertex(CUBE_SIZE / 2.0, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
124
|
-
face.vertex(CUBE_SIZE / 2.0, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
125
|
-
face.vertex(CUBE_SIZE / 2.0, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
126
|
-
face.end_contour
|
127
|
-
face.begin_contour
|
128
|
-
CIRCLE_RES.times do |i|
|
129
|
-
x = CUBE_SIZE / 2
|
130
|
-
y = sine[i]
|
131
|
-
z = cosine[i]
|
132
|
-
face.vertex(x, y, z)
|
133
|
-
end
|
134
|
-
face.end_contour
|
135
|
-
face.end_shape(CLOSE)
|
136
|
-
cube.add_child(face)
|
137
|
-
|
138
|
-
# Left face
|
139
|
-
face = create_shape
|
140
|
-
face.begin_shape(POLYGON)
|
141
|
-
face.stroke(255, 0, 0)
|
142
|
-
face.fill(255)
|
143
|
-
face.begin_contour
|
144
|
-
face.vertex(-CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
145
|
-
face.vertex(-CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
146
|
-
face.vertex(-CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
147
|
-
face.vertex(-CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
148
|
-
face.end_contour
|
149
|
-
face.begin_contour
|
150
|
-
CIRCLE_RES.times do |i|
|
151
|
-
x = -CUBE_SIZE / 2
|
152
|
-
y = sine[i]
|
153
|
-
z = cosine[i]
|
154
|
-
face.vertex(x, y, z)
|
155
|
-
end
|
156
|
-
face.end_contour
|
157
|
-
face.end_shape(CLOSE)
|
158
|
-
cube.add_child(face)
|
159
|
-
|
160
|
-
# Top face
|
161
|
-
face = create_shape
|
162
|
-
face.begin_shape(POLYGON)
|
163
|
-
face.stroke(255, 0, 0)
|
164
|
-
face.fill(255)
|
165
|
-
face.begin_contour
|
166
|
-
face.vertex(-CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
167
|
-
face.vertex(CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
168
|
-
face.vertex(CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
169
|
-
face.vertex(-CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
170
|
-
face.end_contour
|
171
|
-
face.begin_contour
|
172
|
-
CIRCLE_RES.times do |i|
|
173
|
-
x = sine[i]
|
174
|
-
y = CUBE_SIZE / 2
|
175
|
-
z = cosine[i]
|
176
|
-
face.vertex(x, y, z)
|
177
|
-
end
|
178
|
-
face.end_contour
|
179
|
-
face.end_shape(CLOSE)
|
180
|
-
cube.add_child(face);
|
181
|
-
|
182
|
-
# Bottom face
|
183
|
-
face = create_shape
|
184
|
-
face.begin_shape(POLYGON)
|
185
|
-
face.stroke(255, 0, 0)
|
186
|
-
face.fill(255)
|
187
|
-
face.begin_contour
|
188
|
-
face.vertex(CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
189
|
-
face.vertex(-CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
190
|
-
face.vertex(-CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
191
|
-
face.vertex(CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
192
|
-
face.end_contour
|
193
|
-
face.begin_contour
|
194
|
-
CIRCLE_RES.times do |i|
|
195
|
-
x = sine[i]
|
196
|
-
y = -CUBE_SIZE / 2
|
197
|
-
z = cosine[i]
|
198
|
-
face.vertex(x, y, z)
|
199
|
-
end
|
200
|
-
face.end_contour
|
201
|
-
face.end_shape(CLOSE)
|
202
|
-
cube.add_child(face)
|
203
|
-
return cube
|
204
|
-
end
|
205
|
-
|
206
|
-
def restore_cube
|
207
|
-
|
208
|
-
|
209
|
-
# Front face
|
210
|
-
face = cube.get_child(0)
|
211
|
-
face.set_vertex(0, -CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
212
|
-
face.set_vertex(1, CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
213
|
-
face.set_vertex(2, CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
214
|
-
face.set_vertex(3, -CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
215
|
-
CIRCLE_RES.times do |i|
|
216
|
-
x = sine[i]
|
217
|
-
y = cosine[i]
|
218
|
-
z = CUBE_SIZE / 2
|
219
|
-
face.set_vertex(4 + i, x, y, z)
|
220
|
-
end
|
221
|
-
|
222
|
-
# Back face
|
223
|
-
face = cube.get_child(1)
|
224
|
-
face.set_vertex(0, CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
225
|
-
face.set_vertex(1, -CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
226
|
-
face.set_vertex(2, -CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
227
|
-
face.set_vertex(3, CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
228
|
-
CIRCLE_RES.times do |i|
|
229
|
-
x = sine[i]
|
230
|
-
y = cosine[i]
|
231
|
-
z = -CUBE_SIZE / 2
|
232
|
-
face.set_vertex(4 + i, x, y, z)
|
233
|
-
end
|
234
|
-
|
235
|
-
# Right face
|
236
|
-
face = cube.get_child(2)
|
237
|
-
face.set_vertex(0, CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
238
|
-
face.set_vertex(1, CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
239
|
-
face.set_vertex(2, CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
240
|
-
face.set_vertex(3, CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
241
|
-
CIRCLE_RES.times do |i|
|
242
|
-
x = CUBE_SIZE / 2
|
243
|
-
y = sine[i]
|
244
|
-
z = cosine[i]
|
245
|
-
face.set_vertex(4 + i, x, y, z)
|
246
|
-
end
|
247
|
-
|
248
|
-
# Left face
|
249
|
-
face = cube.get_child(3)
|
250
|
-
face.set_vertex(0, -CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
251
|
-
face.set_vertex(1, -CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
252
|
-
face.set_vertex(2, -CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
253
|
-
face.set_vertex(3, -CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
254
|
-
CIRCLE_RES.times do |i|
|
255
|
-
x = -CUBE_SIZE / 2
|
256
|
-
y = sine[i]
|
257
|
-
z = cosine[i]
|
258
|
-
face.set_vertex(4 + i, x, y, z)
|
259
|
-
end
|
260
|
-
|
261
|
-
# Top face
|
262
|
-
face = cube.get_child(4)
|
263
|
-
face.set_vertex(0, -CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
264
|
-
face.set_vertex(1, CUBE_SIZE / 2, CUBE_SIZE / 2, CUBE_SIZE / 2)
|
265
|
-
face.set_vertex(2, CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
266
|
-
face.set_vertex(3, -CUBE_SIZE / 2, CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
267
|
-
CIRCLE_RES.times do |i|
|
268
|
-
x = sine[i]
|
269
|
-
y = CUBE_SIZE / 2
|
270
|
-
z = cosine[i]
|
271
|
-
face.set_vertex(4 + i, x, y, z)
|
272
|
-
end
|
273
|
-
|
274
|
-
# Bottom face
|
275
|
-
face = cube.get_child(5)
|
276
|
-
face.set_vertex(0, CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
277
|
-
face.set_vertex(1, -CUBE_SIZE / 2, -CUBE_SIZE / 2, CUBE_SIZE / 2)
|
278
|
-
face.set_vertex(2, -CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
279
|
-
face.set_vertex(3, CUBE_SIZE / 2, -CUBE_SIZE / 2, -CUBE_SIZE / 2)
|
280
|
-
CIRCLE_RES.times do |i|
|
281
|
-
x = sine[i]
|
282
|
-
y = -CUBE_SIZE / 2
|
283
|
-
z = cosine[i]
|
284
|
-
face.set_vertex(4 + i, x, y, z)
|
285
|
-
end
|
286
|
-
end
|
287
|
-
|
@@ -1,58 +0,0 @@
|
|
1
|
-
########################
|
2
|
-
# NB: Bit slow to get going
|
3
|
-
# but, performs Ok after
|
4
|
-
########################
|
5
|
-
|
6
|
-
BOX_SIZE = 20
|
7
|
-
MARGIN = BOX_SIZE * 2
|
8
|
-
DEPTH = 400
|
9
|
-
FINT = 3
|
10
|
-
|
11
|
-
attr_reader :box_fill, :grid, :fcount, :lastm, :frate
|
12
|
-
|
13
|
-
def setup
|
14
|
-
size(640, 360, P3D)
|
15
|
-
#frame_rate(60)
|
16
|
-
@fcount = 0
|
17
|
-
@lastm = 0
|
18
|
-
no_smooth
|
19
|
-
no_stroke
|
20
|
-
@grid = create_shape(GROUP)
|
21
|
-
# Build grid using multiple translations
|
22
|
-
(-(DEPTH/2 + MARGIN) ... (DEPTH/2 - MARGIN)).step(BOX_SIZE) do |i|
|
23
|
-
(-(height + MARGIN) ... (height - MARGIN)).step(BOX_SIZE) do |j|
|
24
|
-
(-(width + MARGIN) ... (width - MARGIN)).step(BOX_SIZE) do |k|
|
25
|
-
# Base fill color on counter values, abs function
|
26
|
-
# ensures values stay within legal range
|
27
|
-
@box_fill = color(i.abs.to_i, j.abs.to_i, k.abs.to_i, 50)
|
28
|
-
cube = create_shape(BOX, BOX_SIZE.to_f, BOX_SIZE.to_f, BOX_SIZE.to_f)
|
29
|
-
cube.set_fill(box_fill)
|
30
|
-
cube.translate(k, j, i)
|
31
|
-
grid.add_child(cube)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
def draw
|
38
|
-
background(255)
|
39
|
-
hint(DISABLE_DEPTH_TEST)
|
40
|
-
# Center and spin grid
|
41
|
-
push_matrix()
|
42
|
-
translate(width/2, height/2, -DEPTH)
|
43
|
-
rotate_y(frame_count * 0.01)
|
44
|
-
rotate_x(frame_count * 0.01)
|
45
|
-
shape(grid)
|
46
|
-
pop_matrix()
|
47
|
-
hint(ENABLE_DEPTH_TEST)
|
48
|
-
@fcount += 1
|
49
|
-
m = millis()
|
50
|
-
if (m - lastm > 1000 * FINT)
|
51
|
-
@frate = fcount / FINT
|
52
|
-
@fcount = 0
|
53
|
-
@lastm = m
|
54
|
-
puts("fps: #{frate}")
|
55
|
-
end
|
56
|
-
fill(0)
|
57
|
-
text("fps: #{frate}", 10, 20)
|
58
|
-
end
|