https://github.com/ruby-processing/math_demo
An example of how you might develop an app with propane
https://github.com/ruby-processing/math_demo
Last synced: 5 months ago
JSON representation
An example of how you might develop an app with propane
- Host: GitHub
- URL: https://github.com/ruby-processing/math_demo
- Owner: ruby-processing
- License: lgpl-3.0
- Created: 2016-12-14T20:21:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-10-16T07:46:29.000Z (about 4 years ago)
- Last Synced: 2025-07-28T03:04:41.257Z (6 months ago)
- Language: Ruby
- Homepage: https://ruby-processing.github.io/math_demo/
- Size: 61.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# math_demo
An example of how you might develop an app as a gem with propane
to install
```bash
jgem install math_demo
```
to run
```bash
math_demo
```
### Now you've installed propane! Get more examples to try:-
```bash
propane --install samples
```
The samples get copied to `~/propane_samples`, NB: depends on `wget`. for a simple demo of circumcircle math see `~/propane_samples/processing_app/library/vecmath/vec2d/circumcircle_sketch.rb` or to run samples as a demo:-
```bash
cd ~/propane_samples
rake
# Some sketches require opengl which doesn't get installed on windows.
# For other libraries see below
```
Or to run individual sketches `cd` to directory and:-
```bash
cd ~/propane_samples/processing_app/library/vecmath/vec2d
jruby circumcircle_sketch.rb
```
Changing directories is particulary important for sketches with extra files eg `data` or relative `*.rb` files.
Or explore using `atom` editor and use `script` plugin to run (NB: make sure the file type is `Ruby` or `JRubyArt`, sketches wont run with type as `Ruby on Rails`) also make sure `jruby` is on your `path`.
### Propane documentation
[Propane web-site](https://ruby-processing.github.io/propane/)
### Scope for improvement
In theory we should be able to use nmatrix (jruby version) in the matrix calculation, possibly on the gpu https://groups.google.com/forum/#!topic/sciruby-dev/CIC0EuTRNAk