arcball 0.0.3-java → 1.0-java

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d04cf4e3d901ff1b397ab2cea83e3594ac7b2a73
4
- data.tar.gz: 142ea26c1a7ccc264f8682a5f2b1b897d81ebe1b
3
+ metadata.gz: 6580a3cdb69958e6e6e8c50a2e77aca7547530c5
4
+ data.tar.gz: 6f6bed78808031936374dc7fe6bbf3972ad5d086
5
5
  SHA512:
6
- metadata.gz: f6a65d2f089f9ccd8acfc7a5b37e22574ccc83f5f02879086e6af37621cefc605ba045689b64a1d8b670e26ce0e844aa67a6b0a626c10f45f6b3f802c136bc37
7
- data.tar.gz: a5937666e6d1937d01b0c9168f99f764e7fcc850269e4b12828b629a1b64e7a102700c40bc707742e0a51642474f0afad008d253ec3f678a140124c10b00fde3
6
+ metadata.gz: 44db6ff52f4703f4fed45ebcb6540282afce41a450c32f22a8385d7ac1f718182028a0762ba975675d36fc44aefc8d87d35350244e4d66b2fc614ca9c2dfecd6
7
+ data.tar.gz: d04b79a94c1147348968acfd21c08b118fb2cf3005b16058b2f191c3978b2db1616062ede3227459e0980a3da2f302cff2ac382e4ebe00d3cfc708ab54f269e7
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  ArcBall functionality for processing (ruby versions) as gem
3
3
 
4
4
  ### Example Usage
5
- The sketch class need to to inherit from PApplet to work and self should return such an instance. The following is a ruby-processing example, which currently supplies arcball via a library, but gem distribution has its attractions
5
+ The sketch class need to to inherit from PApplet to work and self should return such an instance. The following is a ruby-processing example, which currently supplies arcball via a library, but gem distribution has its attractions. Drag mouse to rotate. Hold down 'x', 'y' or 'z' keys to constrain axis of rotation, mouse-wheel to zoom.
6
6
 
7
7
  ```ruby
8
8
  require 'arcball'
@@ -19,3 +19,20 @@ def draw
19
19
  box(300, 300, 300)
20
20
  end
21
21
  ```
22
+ Since version 0.0.2, you can also fix rotation to one axis at initialization
23
+
24
+ ```ruby
25
+ require 'arcball'
26
+
27
+ def setup
28
+ size(600, 600, P3D)
29
+ smooth(8)
30
+ Processing::ArcBall.constrain self #, :zaxis # default constrains to y-axis
31
+ fill 180
32
+ end
33
+
34
+ def draw
35
+ background(50)
36
+ box(300, 300, 300)
37
+ end
38
+ ```
data/lib/arcball.jar CHANGED
Binary file
@@ -1,5 +1,4 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
  module ArcBall
4
- VERSION = '0.0.3'.freeze
3
+ VERSION = '1.0'.freeze
5
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcball
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: '1.0'
5
5
  platform: java
6
6
  authors:
7
7
  - Martin Prout
@@ -16,15 +16,15 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '11.1'
19
+ version: '12'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '11.1'
27
- description: A ArcBall in java for processing on ruby
26
+ version: '12'
27
+ description: A ArcBall in java for propane
28
28
  email: martin_p@lineone.net
29
29
  executables: []
30
30
  extensions: []
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  requirements: []
60
60
  rubyforge_project:
61
- rubygems_version: 2.6.3
61
+ rubygems_version: 2.6.11
62
62
  signing_key:
63
63
  specification_version: 4
64
64
  summary: Provides arcball functionality to processing, from a ruby environment