graphics 1.0.0b1
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 +7 -0
 - checksums.yaml.gz.sig +0 -0
 - data.tar.gz.sig +0 -0
 - data/.autotest +26 -0
 - data/.gemtest +0 -0
 - data/History.rdoc +12 -0
 - data/Manifest.txt +37 -0
 - data/README.rdoc +71 -0
 - data/Rakefile +26 -0
 - data/examples/boid.rb +653 -0
 - data/examples/bounce.rb +86 -0
 - data/examples/collision.rb +74 -0
 - data/examples/demo.rb +90 -0
 - data/examples/editor.rb +70 -0
 - data/examples/fluid.rb +246 -0
 - data/examples/fluid2.rb +199 -0
 - data/examples/lito.rb +108 -0
 - data/examples/lito2.rb +110 -0
 - data/examples/logo.rb +73 -0
 - data/examples/math.rb +42 -0
 - data/examples/radar.rb +31 -0
 - data/examples/tank.rb +160 -0
 - data/examples/tank2.rb +173 -0
 - data/examples/targeting.rb +46 -0
 - data/examples/vants.rb +69 -0
 - data/examples/walker.rb +116 -0
 - data/examples/zenspider1.rb +93 -0
 - data/examples/zenspider2.rb +123 -0
 - data/examples/zenspider3.rb +104 -0
 - data/examples/zenspider4.rb +90 -0
 - data/examples/zombies.rb +385 -0
 - data/lib/graphics.rb +9 -0
 - data/lib/graphics/body.rb +216 -0
 - data/lib/graphics/extensions.rb +48 -0
 - data/lib/graphics/simulation.rb +377 -0
 - data/lib/graphics/trail.rb +69 -0
 - data/lib/graphics/v.rb +71 -0
 - data/resources/images/body.png +0 -0
 - data/resources/images/turret.png +0 -0
 - data/rubysdl_setup.sh +34 -0
 - data/test/test_graphics.rb +408 -0
 - metadata +191 -0
 - metadata.gz.sig +2 -0
 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,191 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: graphics
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.0b1
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Ryan Davis
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 9 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 10 
     | 
    
         
            +
            cert_chain:
         
     | 
| 
      
 11 
     | 
    
         
            +
            - |
         
     | 
| 
      
 12 
     | 
    
         
            +
              -----BEGIN CERTIFICATE-----
         
     | 
| 
      
 13 
     | 
    
         
            +
              MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
         
     | 
| 
      
 14 
     | 
    
         
            +
              ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
         
     | 
| 
      
 15 
     | 
    
         
            +
              GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
         
     | 
| 
      
 16 
     | 
    
         
            +
              AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
         
     | 
| 
      
 17 
     | 
    
         
            +
              JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
         
     | 
| 
      
 18 
     | 
    
         
            +
              b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
         
     | 
| 
      
 19 
     | 
    
         
            +
              taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
         
     | 
| 
      
 20 
     | 
    
         
            +
              oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
         
     | 
| 
      
 21 
     | 
    
         
            +
              GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
         
     | 
| 
      
 22 
     | 
    
         
            +
              qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
         
     | 
| 
      
 23 
     | 
    
         
            +
              gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
         
     | 
| 
      
 24 
     | 
    
         
            +
              HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
         
     | 
| 
      
 25 
     | 
    
         
            +
              AQAFoDJRokCQdxFfOrmsKX41KOFlU/zjrbDVM9hgB/Ur999M6OXGSi8FitXNtMwY
         
     | 
| 
      
 26 
     | 
    
         
            +
              FVjsiAPeU7HaWVVcZkj6IhINelTkXsxgGz/qCzjHy3iUMuZWw36cS0fiWJ5rvH+e
         
     | 
| 
      
 27 
     | 
    
         
            +
              hD7uXxJSFuyf1riDGI1aeWbQ74WMwvNstOxLUMiV5a1fzBhlxPqb537ubDjq/M/h
         
     | 
| 
      
 28 
     | 
    
         
            +
              zPUFPVYeL5KjDHLCqI2FwIk2sEMOQgjpXHzl+3NlD2LUgUhHDMevmgVua0e2GT1B
         
     | 
| 
      
 29 
     | 
    
         
            +
              xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
         
     | 
| 
      
 30 
     | 
    
         
            +
              VpzF30vNaJK6ZT7xlIsIlwmH
         
     | 
| 
      
 31 
     | 
    
         
            +
              -----END CERTIFICATE-----
         
     | 
| 
      
 32 
     | 
    
         
            +
            date: 2015-08-05 00:00:00.000000000 Z
         
     | 
| 
      
 33 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 34 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 35 
     | 
    
         
            +
              name: rsdl
         
     | 
| 
      
 36 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 37 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 38 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 39 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '0.1'
         
     | 
| 
      
 41 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 42 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 43 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 44 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 45 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 46 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 47 
     | 
    
         
            +
                    version: '0.1'
         
     | 
| 
      
 48 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 49 
     | 
    
         
            +
              name: rubysdl
         
     | 
| 
      
 50 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 51 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 52 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 53 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 54 
     | 
    
         
            +
                    version: '2.2'
         
     | 
| 
      
 55 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 56 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 57 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 58 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 59 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 60 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 61 
     | 
    
         
            +
                    version: '2.2'
         
     | 
| 
      
 62 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 63 
     | 
    
         
            +
              name: minitest
         
     | 
| 
      
 64 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 65 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 66 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 67 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 68 
     | 
    
         
            +
                    version: '5.6'
         
     | 
| 
      
 69 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 70 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 71 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 72 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 73 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 74 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 75 
     | 
    
         
            +
                    version: '5.6'
         
     | 
| 
      
 76 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 77 
     | 
    
         
            +
              name: rdoc
         
     | 
| 
      
 78 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 79 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 80 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 81 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 82 
     | 
    
         
            +
                    version: '4.0'
         
     | 
| 
      
 83 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 84 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 85 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 86 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 87 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 88 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 89 
     | 
    
         
            +
                    version: '4.0'
         
     | 
| 
      
 90 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 91 
     | 
    
         
            +
              name: hoe
         
     | 
| 
      
 92 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 93 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 94 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 95 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 96 
     | 
    
         
            +
                    version: '3.13'
         
     | 
| 
      
 97 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 98 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 99 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 100 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 101 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 102 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 103 
     | 
    
         
            +
                    version: '3.13'
         
     | 
| 
      
 104 
     | 
    
         
            +
            description: |-
         
     | 
| 
      
 105 
     | 
    
         
            +
              Graphics provides a simple framework to implement games and/or
         
     | 
| 
      
 106 
     | 
    
         
            +
              simulations and is designed to follow mathematical conventions, NOT
         
     | 
| 
      
 107 
     | 
    
         
            +
              game programming conventions. Particularly it:
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
              * Uses degrees.
         
     | 
| 
      
 110 
     | 
    
         
            +
              * Draws in quadrant 1 (0-90 degrees).
         
     | 
| 
      
 111 
     | 
    
         
            +
              * Right hand rule: 0 degrees is east, 90 is north, etc.
         
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
              These allow simple things like Trigonometry functions to work as
         
     | 
| 
      
 114 
     | 
    
         
            +
              expected. It means that all that stuff you were taught it grade school
         
     | 
| 
      
 115 
     | 
    
         
            +
              still work as intended. This makes one less thing you have to adjust
         
     | 
| 
      
 116 
     | 
    
         
            +
              when implementing your simulation.
         
     | 
| 
      
 117 
     | 
    
         
            +
            email:
         
     | 
| 
      
 118 
     | 
    
         
            +
            - ryand-ruby@zenspider.com
         
     | 
| 
      
 119 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 120 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 121 
     | 
    
         
            +
            extra_rdoc_files:
         
     | 
| 
      
 122 
     | 
    
         
            +
            - History.rdoc
         
     | 
| 
      
 123 
     | 
    
         
            +
            - Manifest.txt
         
     | 
| 
      
 124 
     | 
    
         
            +
            - README.rdoc
         
     | 
| 
      
 125 
     | 
    
         
            +
            files:
         
     | 
| 
      
 126 
     | 
    
         
            +
            - .autotest
         
     | 
| 
      
 127 
     | 
    
         
            +
            - .gemtest
         
     | 
| 
      
 128 
     | 
    
         
            +
            - History.rdoc
         
     | 
| 
      
 129 
     | 
    
         
            +
            - Manifest.txt
         
     | 
| 
      
 130 
     | 
    
         
            +
            - README.rdoc
         
     | 
| 
      
 131 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 132 
     | 
    
         
            +
            - examples/boid.rb
         
     | 
| 
      
 133 
     | 
    
         
            +
            - examples/bounce.rb
         
     | 
| 
      
 134 
     | 
    
         
            +
            - examples/collision.rb
         
     | 
| 
      
 135 
     | 
    
         
            +
            - examples/demo.rb
         
     | 
| 
      
 136 
     | 
    
         
            +
            - examples/editor.rb
         
     | 
| 
      
 137 
     | 
    
         
            +
            - examples/fluid.rb
         
     | 
| 
      
 138 
     | 
    
         
            +
            - examples/fluid2.rb
         
     | 
| 
      
 139 
     | 
    
         
            +
            - examples/lito.rb
         
     | 
| 
      
 140 
     | 
    
         
            +
            - examples/lito2.rb
         
     | 
| 
      
 141 
     | 
    
         
            +
            - examples/logo.rb
         
     | 
| 
      
 142 
     | 
    
         
            +
            - examples/math.rb
         
     | 
| 
      
 143 
     | 
    
         
            +
            - examples/radar.rb
         
     | 
| 
      
 144 
     | 
    
         
            +
            - examples/tank.rb
         
     | 
| 
      
 145 
     | 
    
         
            +
            - examples/tank2.rb
         
     | 
| 
      
 146 
     | 
    
         
            +
            - examples/targeting.rb
         
     | 
| 
      
 147 
     | 
    
         
            +
            - examples/vants.rb
         
     | 
| 
      
 148 
     | 
    
         
            +
            - examples/walker.rb
         
     | 
| 
      
 149 
     | 
    
         
            +
            - examples/zenspider1.rb
         
     | 
| 
      
 150 
     | 
    
         
            +
            - examples/zenspider2.rb
         
     | 
| 
      
 151 
     | 
    
         
            +
            - examples/zenspider3.rb
         
     | 
| 
      
 152 
     | 
    
         
            +
            - examples/zenspider4.rb
         
     | 
| 
      
 153 
     | 
    
         
            +
            - examples/zombies.rb
         
     | 
| 
      
 154 
     | 
    
         
            +
            - lib/graphics.rb
         
     | 
| 
      
 155 
     | 
    
         
            +
            - lib/graphics/body.rb
         
     | 
| 
      
 156 
     | 
    
         
            +
            - lib/graphics/extensions.rb
         
     | 
| 
      
 157 
     | 
    
         
            +
            - lib/graphics/simulation.rb
         
     | 
| 
      
 158 
     | 
    
         
            +
            - lib/graphics/trail.rb
         
     | 
| 
      
 159 
     | 
    
         
            +
            - lib/graphics/v.rb
         
     | 
| 
      
 160 
     | 
    
         
            +
            - resources/images/body.png
         
     | 
| 
      
 161 
     | 
    
         
            +
            - resources/images/turret.png
         
     | 
| 
      
 162 
     | 
    
         
            +
            - rubysdl_setup.sh
         
     | 
| 
      
 163 
     | 
    
         
            +
            - test/test_graphics.rb
         
     | 
| 
      
 164 
     | 
    
         
            +
            homepage: https://github.com/seattlerb/graphics
         
     | 
| 
      
 165 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 166 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 167 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
      
 168 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 169 
     | 
    
         
            +
            rdoc_options:
         
     | 
| 
      
 170 
     | 
    
         
            +
            - --main
         
     | 
| 
      
 171 
     | 
    
         
            +
            - README.rdoc
         
     | 
| 
      
 172 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 173 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 174 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 175 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 176 
     | 
    
         
            +
              - - '>='
         
     | 
| 
      
 177 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 178 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 179 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 180 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 181 
     | 
    
         
            +
              - - '>'
         
     | 
| 
      
 182 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 183 
     | 
    
         
            +
                  version: 1.3.1
         
     | 
| 
      
 184 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 185 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 186 
     | 
    
         
            +
            rubygems_version: 2.4.5
         
     | 
| 
      
 187 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 188 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 189 
     | 
    
         
            +
            summary: Graphics provides a simple framework to implement games and/or simulations
         
     | 
| 
      
 190 
     | 
    
         
            +
              and is designed to follow mathematical conventions, NOT game programming conventions
         
     | 
| 
      
 191 
     | 
    
         
            +
            test_files: []
         
     | 
    
        metadata.gz.sig
    ADDED