-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Martin Prout edited this page Jan 24, 2018
·
8 revisions
math_demo
Might not work on Windows with the current release of propane, but should work (on 64 bit OS) with the experimental version
jgem install propane --pre # spefically only Windows 64 binaries
propane --version # 2.20.pre
Three random moving particles are created (they are restricted to moving in the frame). The display is the outline of an ellipse (circle) that is a circumcircle. That is circle that goes through three points given by the particles position. The color of the circle, changes gradually, apart from being constrained (by the frame) the points also sometimes change direction randomly. Periodically the whole sketch is refreshed.
This is very much a taster of what can be done with propane, a batteries included ruby-wrapper for processing-3.3.6. See more examples here