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 +4 -4
- data/README.md +18 -1
- data/lib/arcball.jar +0 -0
- data/lib/arcball/version.rb +1 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6580a3cdb69958e6e6e8c50a2e77aca7547530c5
|
4
|
+
data.tar.gz: 6f6bed78808031936374dc7fe6bbf3972ad5d086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/arcball/version.rb
CHANGED
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:
|
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: '
|
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: '
|
27
|
-
description: A ArcBall in java for
|
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.
|
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
|