Skip to content

Commit 48e715a

Browse files
author
monkstone
committed
export arcball to a:wq gem
1 parent 573d240 commit 48e715a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MANIFEST.MF
1414
.dat*
1515
.repl_history
1616
build/
17-
17+
*.jar
1818
## Documentation cache and generated files:
1919
/.yardoc/
2020
/_yardoc/

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
# ArcBall
22
ArcBall functionality for processing (ruby versions) as gem
3+
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
6+
7+
```ruby
8+
require 'arcball'
9+
10+
def setup
11+
size(600, 600, P3D)
12+
smooth(8)
13+
Processing::ArcBall.init(self, 300, 300)
14+
fill 180
15+
end
16+
17+
def draw
18+
background(50)
19+
box(300, 300, 300)
20+
end
21+
```

0 commit comments

Comments
 (0)