Skip to content

ruby-processing/math_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b0acaf4 · Oct 16, 2021

History

78 Commits
Dec 17, 2016
Oct 16, 2021
Oct 16, 2021
Jul 28, 2017
Dec 14, 2016
Oct 16, 2021
Jan 11, 2018
Dec 14, 2016
Jan 20, 2018
Dec 17, 2016
Oct 16, 2021

Repository files navigation

math_demo

An example of how you might develop an app as a gem with propane

to install

jgem install math_demo

to run

math_demo

Now you've installed propane! Get more examples to try:-

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:-

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:-

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

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