kpfx07 LT ruby-processingでイケメンになりたい

  • Upload
    kokih

  • View
    1.590

  • Download
    3

Embed Size (px)

DESCRIPTION

ぐちゃぐちゃなのでこっちを見てね→ https://docs.google.com/open?id=0BwpbiGiXRNMIWXNCRW1mYWxRUC1OZmt4SXhfcmZ2dw

Citation preview

  • 1. ruby-processingkoki_h K PF 0x07

2. P5er 3. Processing 4. Rubyist D HH 5. Fiberlam bd a L ispM atz 6. Ruby+ Processing= 7. + = 8. ruby-processinghttps:/ github.com / /jashkenas/ruby-processing/wiki 9. ruby-processingRubyProcessing RubyProcessing JrubyL inux(U buntu1 1 .1 0) 10. Ruby(1 .9 or 1 .8)Java1 .6 or 1 .5 gem install ruby-processingO K 11. rp5 create --bare m y_sketch 800 600 m y_sketch.rb rp5 run m y_sketch 12. Ruby d ef setup # M y Sketch size 800, 600endclass M ySketch < Processing::Appd ef d rawd ef setupend endd ef d rawend end ruby M ySketch.new :title = > "M y Sketch", :wid th = > 800, :height = > 600 13. ProcessingAPId ef setupsize 300, 300endd ef d rawrect 1 00,1 00,1 00,1 00endd ef m ousePressedsave("pict#{ hour} #{ m inute} #{ second } .png")end 14. Ruby L am bd a processingload _library Ruby1 .9{ key:value} 15. rp5 live m y_sketchirb 16.