The Joy Of Painting With Ruby - Ruby Manor

3,129 views

Published on

Ruby Manor 2 - Manor Harder.

"The Joy of painting with Ruby"

A talk on using the ruby-processing library, a wrapper for the visual programming language processing.

Published in: Technology, Education
1 Comment
0 Likes
Statistics
Notes
  • Slideshare messed up my font choices .. but it kinda worked.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
3,129
On SlideShare
0
From Embeds
0
Number of Embeds
38
Actions
Shares
0
Downloads
11
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide
  • The Joy Of Painting With Ruby - Ruby Manor

    1. 1. Do I have the right screen?
    2. 2. http://github.com/jasoncale/ manor-ruby-processing
    3. 3. Processing with Ruby.
    4. 4. What is Processing?
    5. 5. “Processing is an open source programming language and environment for people who want to program images, animation, and interactions.”
    6. 6. ruby-processing
    7. 7. Ruby-Processing is a Ruby wrapper for the Processing code art framework. It's this thin little shim that squeezes between Processing and JRuby http://github.com/jashkenas/ruby-processing
    8. 8. gem install ruby-processing
    9. 9. jashkenas / ruby-processing On github
    10. 10. rp5
    11. 11. rp5 run my_art.rb
    12. 12. “Watch” code to see live updates of your sketches.
    13. 13. rp5 watch my_art.rb
    14. 14. Live sketch interaction via JRuby IRB.
    15. 15. rp5 live my_art.rb
    16. 16. Sharing your sketches
    17. 17. Application & Applet generators
    18. 18. rp5 applet my_art.rb
    19. 19. rp5 app my_art.rb
    20. 20. Configurable control panels sliders, menus etc.
    21. 21. So ... an example.
    22. 22. Getting started
    23. 23. Defining a basic sketch as a class.
    24. 24. rp5 create my_art
    25. 25. class MyArt < Processing::App def setup # called once end def draw # called every ‘frame’ end end MySketch.new :title => "My Sketch", :width => 800, :height => 600
    26. 26. Or without a class ..
    27. 27. # no_class.rb def setup size(800, 600) #... end def draw #... end
    28. 28. Processing
    29. 29. http://www.processing.org/reference/
    30. 30. Available as instance methods to your classes.
    31. 31. with added Rubyish
    32. 32. loadImage()
    33. 33. load_image
    34. 34. $app.find_method( ‘load_image’ )
    35. 35. Extend with Custom libraries (or just download some)
    36. 36. library/jase/love.jar
    37. 37. class MyArt < Processing::App load_library :love def setup @heart = Love.organ end ....
    38. 38. Live example
    39. 39. Go make something!
    40. 40. Thanks. http://github.com/jasoncale/ manor-ruby-processing @jasoncale http://gofreerange.com

    ×