The Joy Of Painting With Ruby - Ruby Manor
Upcoming SlideShare
Loading in...5
×
 

The Joy Of Painting With Ruby - Ruby Manor

on

  • 3,730 views

Ruby Manor 2 - Manor Harder.

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.

Statistics

Views

Total Views
3,730
Views on SlideShare
3,699
Embed Views
31

Actions

Likes
0
Downloads
9
Comments
1

4 Embeds 31

http://speakerrate.com 13
http://lanyrd.com 11
http://www.slideshare.net 6
http://67.207.142.125 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Slideshare messed up my font choices .. but it kinda worked.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

The Joy Of Painting With Ruby - Ruby Manor The Joy Of Painting With Ruby - Ruby Manor Presentation Transcript

  • Do I have the right screen?
  • http://github.com/jasoncale/ manor-ruby-processing
  • Processing with Ruby.
  • What is Processing?
  • “Processing is an open source programming language and environment for people who want to program images, animation, and interactions.”
  • ruby-processing
  • 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
  • gem install ruby-processing
  • jashkenas / ruby-processing On github
  • rp5
  • rp5 run my_art.rb
  • “Watch” code to see live updates of your sketches.
  • rp5 watch my_art.rb
  • Live sketch interaction via JRuby IRB.
  • rp5 live my_art.rb
  • Sharing your sketches
  • Application & Applet generators
  • rp5 applet my_art.rb
  • rp5 app my_art.rb
  • Configurable control panels sliders, menus etc.
  • So ... an example.
  • Getting started
  • Defining a basic sketch as a class.
  • rp5 create my_art
  • 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
  • Or without a class ..
  • # no_class.rb def setup size(800, 600) #... end def draw #... end
  • Processing
  • http://www.processing.org/reference/
  • Available as instance methods to your classes.
  • with added Rubyish
  • loadImage()
  • load_image
  • $app.find_method( ‘load_image’ )
  • Extend with Custom libraries (or just download some)
  • library/jase/love.jar
  • class MyArt < Processing::App load_library :love def setup @heart = Love.organ end ....
  • Live example
  • Go make something!
  • Thanks. http://github.com/jasoncale/ manor-ruby-processing @jasoncale http://gofreerange.com