mruby
PictRuby 0.5 ããªãªã¼ã¹ãã¾ããã åããã¦èµ·åç»é¢ã¨ã¢ã¤ã³ã³ããªãã¥ã¼ã¢ã«ãã¾ããã ãã£ããããããæ¸ããããã« evalã使ããããã« irbã使ããããã« (ãµã³ãã«ã®10_irb.rb) ãã£ããããããæ¸ããããã« Chatã¨ããååã®ã¯ã©ã¹ãå®ç¾©ããã¨å¯¾â¦
PictRuby - Ruby Programming Environment in iOS 0.4ã«ãã¼ã¸ã§ã³ã¢ãããã¾ããã p, puts ã使ããããã« ã¹ã¯ãªããåã®å¤æ´ãå¯è½ã« p, puts ã使ããããã« p, puts ã使ã£ã¦ããã¹ããåºåã§ããããã«ãªããCRubyã«å°ãè¿ã¥ãã¾ãããä¹ä¹ãã¼ãã«ãâ¦
PictRubyGems ã« gem_sample ã¨ããã¹ã¯ãªãããç½®ãã¾ããã Install get_sample scriptããgem_sampleãã¤ã³ã¹ãã¼ã«ããã¨ãPictRubyGemsã«ç½®ãã¦ããã½ã¼ã¹ã³ã¼ããPictRubyã¢ããªããç°¡åã«èªããã¨ãã§ããããã«ãªãã¾ãã ããããã¯ja/dictionaryã¨â¦
ãã®è¨äºã¯mruby Advent Calendar 2015ã®25æ¥ç®ã®è¨äºã§ããåæ¥ã¯mrubyã®Redisã¯ã©ã¤ã¢ã³ãã®Pipelining対å¿ã¨Disqueã¯ã©ã¤ã¢ã³ã - 人éã¨ã¦ã§ãã®æªæ¥ã§ããï¼ PictRuby 0.2 ããªãªã¼ã¹ãã¾ãããiPhoneãiPadä¸ã§ã³ã¼ããç·¨éãå®è¡ããããã°ããªãããâ¦
å æ¥ãªãªã¼ã¹ããPictRubyã使ã£ã¦Instagram風ã®æ¨ªä¸¦ã¹ã°ãªããç»åãä½ã£ã¦ã¿ã¾ãã The Week on Instagram | 208 https://t.co/S5Bf5ok5wv pic.twitter.com/xwFLrYvLsjâ Instagram (@instagram) 2015, 11æ 8 ã¤ã³ã¹ãã¼ã«ã¯ãã¡ãããã©ããã ã¤ã³ã¹ãã¼â¦
PictRuby - Photo editor that can write a filter in Ruby iOSä¸ã§ã³ã¼ããç·¨éãå®è¡ããããã°ããªããåçãå å·¥ãããã£ã«ã¿ã¼ãRubyã§æ¸ããã¨ãã§ãã¾ããè¤æ°ã®åçãã¾ã¨ãã¦å¤æãããã¨ãå¯è½ã§ãã Hello, world PictRubyã®ã«ã¼ã«ã¯ãã£ã1ã¤ã§â¦
ã²ã¼ã ã¨Fiber(ã³ã«ã¼ãã³)ã¯ç¸æ§ãããã®ã§çµã¿è¾¼ãã ãmrubygemsã¯ä½¿ããã«ç´æ¥çµã¿è¾¼ã¿ã ongaeshi/ofruby-ios@083e416 PCç°å¢ã§mruby使ããªãmrubygems便å©ã ãã©çµã¿è¾¼ã¿ç°å¢ã«å°ããªgemçµã¿è¾¼ãã¨ãã¯ç´æ¥ã½ã¼ã¹ã³ã¼ã追å ããæ¹ãæ©ãå ´åãããã ãªâ¦
ç´¹ä»ããã¦ãã ofruby â iPhoneã§åãRubyã使ã£ãã°ã©ãã£ãã¯ããã°ã©ãã³ã°ç°å¢ ã¤ã³ã¹ãã¼ã«ãã¦æåã«ä½ãããã°ãããåããã«ããã¨æãã®ã§ããããã®ã¯ãããããæ¸ãã¦ã¿ã¾ãã ãµã³ãã«ã³ã¼ãã®å®è¡ èµ·åããã¨[File]ã¨[Sample]ã®2ã¤ã®ã¿ãããâ¦
ofruby 0.6 ããªãªã¼ã¹ãã¾ãã æ°æ©è½ ãµã³ãã«ã¿ãã追å ã¢ããªå ã§é²è¦§ãå®è¡åºæ¥ãããã« å®éã«éã¹ãã²ã¼ã ã®ãµã³ãã«ã³ã¼ãã追å 3ãããã²ã¼ã ããããã¯ãããã®ãµã³ãã«ã³ã¼ããåé² ãã¡ã¤ã«ãåé¤åºæ¥ãããã« åé¤ãã¿ã³ã®è¿½å ãã°ä¿®æ£ iOSâ¦
ä½ã£ã¦ããiPhone+Rubyã®ããã°ã©ãã³ã°ç°å¢ofrubyã«å®éã«éã¹ãã²ã¼ã ãµã³ãã«ã追å ãã¦ã¿ã¾ãããåºæ¬å³å½¢ãæ¸ãã¦æ´æ°å¦çã¨æç»å¦çãåããããã°ã·ã³ãã«ãªã²ã¼ã ã¯ä½ããã¯ããªã®ã§ããããããã3ããºã«ãä½ã£ã¦ã¿ã¾ãããgifãé«ç²¾ç´°ã«ããåç»ã¯â¦
ofruby 0.3 ããªãªã¼ã¹ãã¾ãã æ°æ©è½ å®è¡ç»é¢ã®ããã²ã¼ã·ã§ã³ãã¼ãé ããã¨ã§å ¨ç»é¢ã使ããããã«ãªãã¾ãã(çµæ§å¤§å) ãnoise, Math::sin, deg_to_rad, push_matrix, translate, rotate, scale ãªã©ã使ããããã«ãªãã¾ããã Hide the navigationBâ¦
ã¯ããã¦ã®åå ã ã£ãã®ã§ããã¨ã¦ã楽ããã£ãã§ãã ãããããã¨ãå ¨é¨æ¸ãã¨é·ããªãã®ã§æãã¤ãããã¨ããæ¸ãã¦ãããã¨æãã¾ãã å¤åæãããã£ã±ãããã¾ãã ããã¼ã¨ï¼æ¥ç® ããã ããã®è©±ã§Rubyã®ç¾ç¶ã¨æ¬¡ã®èª²é¡ããããããåãã£ã ã·ã³ãã«â¦
ofruby 0.2 ããªãªã¼ã¹ãã¾ããã æ°æ©è½ width, heightã§ã¦ã£ã³ãã¦ã®ãµã¤ãºãåå¾åºæ¥ãããã«ãªã£ãããInput.touch(idx), Input.touchesã§ãã«ãã¿ããå ¥åãåå¾åºæ¥ãããã«ãªãã¾ãããset_background_autoãfalseã«è¨å®ããã¨æ¯Fãã¬ã¼ã ãããã¡ãâ¦
ofrubyã®ãã¦ã³ãã¼ãã¯ãã¡ãããã©ããã ofruby0.2(審æ»å¾ ã¡âä»æééãã¾ãã)ã§ã¿ããããè¤æ°ã®ä½ç½®æ å ±ãåå¾åºæ¥ãããã«ãªãã¾ããã module Input # ã¿ããä½ç½®ãåå¾(0ã4) def self.touch(idx) # å ¨ã¦ã®ã¿ããä½ç½®ãArrayã§åå¾ def self.toucheâ¦
ofrubyã®ãã¦ã³ãã¼ãã¯ãã¡ãããã©ããã å±±ã«è¡ã£ãæã«ä½ãã¾ãããä¸å®æéãçµã¤ã¨å¤ã«ãªã£ã¦æãåºã¦ãã¾ãã def setup set_background 239, 90, 41 @frame = 0 @x = 0 @y = -100 #@night = true end def update @frame += 1 @night = true if @framâ¦
ofrubyã®ãã¦ã³ãã¼ãã¯ãã¡ãããã©ããã åããªãåãåãåãæåã表示ãã¾ããå¾ã«æ¸ãããã®ãæç»ãåªå ããã¾ããä»ã®åºæ¬å³å½¢ã®æ¸ãæ¹ãç¥ãããæã¯ã¨ãã£ã¿ç»é¢ã®[?]ãè¦ã¦ä¸ããã def setup set_background 128, 128, 128 @y = 0 end def updaâ¦
ofrubyã®ãã¦ã³ãã¼ãã¯ãã¡ãããã©ããã p5.jsã®çä¼¼ã§ããstepã使ã£ã¦0ã480ã¾ã§20å»ã¿ã§ç·ãæ¸ãã¦ããã¾ããset_color_hexã使ãã¨è²ã16é²æ°ã§æå®ãããã¨ãåºæ¥ã¾ãã#ff00ffã®ãããªWebã®è²æå®ã¨åããªã®ã§ãKulerãªã©ã®ã«ã©ã¼èª¿æ´ã¢ããªã使ãâ¦
å¤ä¼ã¿ã«ä½ã£ã¦ãããã®ãå æ¥App Storeã®ç³è«ãééããã®ã§ç´¹ä»ãã¾ãã ofrubyã¯iPhoneãiPod touch, iPad ä¸ã§ç°¡åã«ã°ã©ãã£ãã¯ããã°ã©ã ãæ¸ããã¨ãåºæ¥ãã¢ããªã§ããããã°ã©ã ã®è¨è¿°ãå®è¡ããããã°ã管çãå ¨ã¦iPhoneä¸ã§è¡ããã¨ãåºæ¥ãã®ãâ¦
ãã®è¨äºã¯mruby Advent Calendar 2013ã®16æ¥ç®ã§ãã ã¯ããã« å°ãåã«RubyKokubanã¨ãããã®ãä½ãã¾ããã ongaeshi/rubykokuban-gem ãã®ã©ã¤ãã©ãªã使ãã¨ãç°¡åã«ã°ã©ãã£ãã¯ãã¢ãã¡ã¼ã·ã§ã³ã使ã£ãã¢ããªã±ã¼ã·ã§ã³ãæ¸ããã¨ãåºæ¥ã¾ãã RubyKâ¦
èªåãä½ã£ããã®ã«ååãä»ããã¨ããã®ã¯é£ãããããååã®ã½ããã¦ã§ã¢ãå¿ ãæ®åãã訳ã§ã¯ç¡ãããã©ãä¸ã®ä¸ã«èªç¥ãããã½ããã¦ã§ã¢ã¯çããååã§ãããä½ã¯è¨ããã®ã§ã¯ãªãã ãããã æ ç»ã½ã¼ã·ã£ã«ãããã¯ã¼ã¯ã®ä¸ã§ã·ã§ã¼ã³ãã¼ã«ã¼(å½¹ã®ã¸â¦
mrubysearch mrubyã½ã¼ã¹ã³ã¼ãæ¤ç´¢ã¨ã³ã¸ã³ã§ããmrubyã¨mrubyã使ã£ãã½ããã¦ã§ã¢ã®ã½ã¼ã¹ã³ã¼ããé«éã«æ¤ç´¢ãããã¨ãåºæ¥ã¾ãã ååããå°ãã¥ã¤æ¹åãç¶ãã¦ãã¾ãã mrubysearchã®ã¬ãã¸ããªãæ´åãã ongaeshi/mrubysearch ã«ç½®ãã¾ãããä»ã®ç°â¦
mrubyã§ã¤ã³ã¿ã©ã¯ãã£ãã¢ããªãä½ãããã®Tipséã§ãã ç»åã®æä½ (1) ç»åã表示ãã (2) Image#drawã¨set_colorã®é¢ä¿ (3) ç»åãæ¡å¤§ã¢ãã¡ã¼ã·ã§ã³ããã (4) ç»åããã¦ã¹ã«è¿½å¾ããã (5) ç»åããªã¢ã«ã¿ã¤ã ã«ã°ã¬ã¼ã¹ã±ã¼ã«ã«
ååãªãªã¼ã¹ããããã«æ©è½ã追å ãã¾ãããRubyKokubanã®åºæ¬çãªä½¿ãæ¹ãã¤ã³ã¹ãã¼ã«æ¹æ³ãªã©ã¯ãã¡ããã©ããã ç»åã®è¡¨ç¤º (Image) è²ãå¶å¾¡ããã¯ã©ã¹ã追å (Color) ç»åã表示ãã Image.load(filename)ã使ãã¾ããé©å½ãªç»åãã¹ã¯ãªããã¨åãå ´â¦
http://mrubysearch.ongaeshi.me/ RubyKokubanãä½ãã«ããã£ã¦mrubyã®ã½ã¼ã¹ãmgem(mrubyã®RubyGemsã¿ãããªãã¤)ã«ç»é²ãããã½ã¼ã¹ã³ã¼ããç°¡åã«èªããããã«ããããªããã¨æãä½ã£ã¦ã¿ã¾ããã ä¸æ¥ä¸åã¬ãã¸ããªãææ°ã«æ´æ°ãã¦ã¤ã³ããã¯ã¹ã®åæ§â¦
mrubyã使ã£ã¦ã°ã©ãã£ã«ã«ï¼ã¤ã³ã¿ã©ã¯ãã£ããªã¢ããªã±ã¼ã·ã§ã³ãä½ããRubyKokubanã¨ãããã®ãä½ãã¾ããã mrubyã§ä½ããããããªãã¨æããã¤ãã¨æ¸ãã¦ããã®ã§ãããå°ã触ããããã«ãªã£ã¦ããã®ã§å ¬éãã¾ãã def draw text 'Hello, rubykokuban!â¦