Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danmayer/processing-snow
A Ruby-Processing example that makes snow for Xmas
https://github.com/danmayer/processing-snow
Last synced: 4 days ago
JSON representation
A Ruby-Processing example that makes snow for Xmas
- Host: GitHub
- URL: https://github.com/danmayer/processing-snow
- Owner: danmayer
- Created: 2009-12-23T02:27:27.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2013-10-22T03:32:48.000Z (about 11 years ago)
- Last Synced: 2024-12-11T16:39:30.273Z (29 days ago)
- Language: Ruby
- Homepage:
- Size: 156 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
#A small Ruby-Processing example merged together by Dan Mayer
What is it?
http://ashkenas.com/codework/ruby-processing.html
http://wiki.github.com/jashkenas/ruby-processingWhere did this code come from?
I merged and modified two projects...
The excellent, Slides, Code, and PDF from "Art of Code"
http://www.meetup.com/dcruby/messages/8233735/
A great example of Penrose Snowflake L-Systems using ruby-processing
http://learning-ruby-processing.blogspot.com/2009/11/penrose-snowflake-l-systems-using-ruby.htmlWhat did you do?
I basically wanted to drawn randomly sized snowflakes of random complexity until the whole screen turned white. So taking the snowflake example that drew a single snowflake and modifying it to draw N snowflakes. I used code from the Art of Code presentation because it had nice loops, methods for screen capture, and a simple way to let the mouse restart the action.Cool I want to make my own... Fork this project and play around or check out the Ruby-Processing getting started guide
http://wiki.github.com/jashkenas/ruby-processing/getting-startedHow do I make this example work?
* install the latest version of ruby-processing
* https://github.com/jashkenas/ruby-processing
* rp5 run snow.rb
* Controls
* Press 's' to take a screenshot
* Click your mouse to clear the screen and start over
* Press Escape to quit