Skip to content

Commit

Permalink
export arcball to a:wq gem
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed Mar 13, 2016
1 parent 573d240 commit 48e715a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MANIFEST.MF
.dat*
.repl_history
build/

*.jar
## Documentation cache and generated files:
/.yardoc/
/_yardoc/
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# ArcBall
ArcBall functionality for processing (ruby versions) as gem

### Example Usage
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

```ruby
require 'arcball'

def setup
size(600, 600, P3D)
smooth(8)
Processing::ArcBall.init(self, 300, 300)
fill 180
end

def draw
background(50)
box(300, 300, 300)
end
```

0 comments on commit 48e715a

Please sign in to comment.