After we received the LEAP Motion Controller SDK some days ago, we enjoyed to investigate new interaction possibilities. Over the past weeks, we had the chance to develop different kind of applications for free fingertip interaction in mid air. To touch, to navigate and even form objects. Unsurprisingly we found speed, feedback and precision delivered by the leap absolutely convincing. We also dev
ãããã·ã§ã³ï¼ åããã¤ãã¦åçãé ãããã ã¤ãã°å¤§å¦ã®ãããããã¯ãã©ããã Smooth Div Scroll ã®ãµã³ãã«ããããæ°ã«å ¥ã£ãããããJavaScript ï¼ã¨ãããjQueryï¼ã«èå³ãæã£ãããã ãããã ããããããããããããããããããå¹´é ã ããã ãã ãjQuery ã®ç¥èã¯å¿ ãããå¿ è¦ã§ã¯ãªãã Java + α ã®ç¥èã ãã§ãå²ã¨ç°¡åã«ãããªãã®ãä½ããã ãããªãã ããã½ã¼ã¹ã³ã¼ãããè¦ãããããä¸èº«ã¯ç¹ã«æèããå¿ è¦ã¯ãªãã ãprogram.pjsã ArrayList imgList; ArrayList picList; float bound; void setup() { size(400, 400); frameRate(30); // ããããªã㨠chrome ã§é度ããããããªã bound = 100; imgList = new
Processing.js ãProcessing.jsãã¯ç»åå¦çããã°ã©ãã³ã°è¨èªãProcessingããJavascriptã«ç§»æ¤ããã©ã¤ãã©ãªã§ãããã®ã©ã¤ãã©ãªãç¨ãããã¨ã§ãHTML5ã®canvasè¦ç´ ä¸ã§Processingã®å¦ççµæãæç»ãããã¨ãå¯è½ã«ãªãã¾ããåéããããããã§ãããProcessing.jsã¯ãProcessingã®ããã°ã©ã ãHTMLä¸ã§åãããããã®ã©ããã¼ã§ãããcanvasæç»ã®ããã®è£å©ã©ã¤ãã©ãªã§ã¯ããã¾ãããåç»å¦çã®ã½ã¼ã¹ãã¡ã¤ã«ã¯Processingã§è¨è¿°ããããã«ãªãã¾ãã Processing.jsã使ãããã®æºå Processing.jsã使ãã«ã¯ãå ¬å¼ãµã¤ãããjsãã¡ã¤ã«ããã¦ã³ãã¼ããããããå ã§èªã¿è¾¼ã¾ãã¾ãã <script type="text/javascript" src="js/processing.js"
以åç´¹ä»ãããProcessing for iOSãããProcessing IDE for iOSãã¨ããååã«å¤ãã£ã¦ãªãªã¼ã¹ããã¾ããã ä½ã§ååå¤ãã£ãã®ããªï¼ã¨æãã¤ã¤iTunes Storeã§ãProcessingãã¨ããã¯ã¼ãã§æ¤ç´¢ããã¨ãã®çç±ãå¤æãã¾ããã1/12ã«æ¢ã«ãProcessing for iOSãã¨ããååã®ã¢ããªããªãªã¼ã¹æ¸ã¿ã§ããã ãã¡ãã®å¤æ®µã¯ç¡æã§ãããæ©è½ã¯è³ã£ã¦ã·ã³ãã«ã§ããå®ç¨ã«ã¯åé¡ç¡ãã¨ããæãã§ãã(ã¢ããªã®ãªã³ã¯)ã ç·¨éç»é¢ã¯ãããªæããåçãã¼ã¯ãã¿ããããã¨å®è¡åºæ¥ã¾ãã å®è¡ç»é¢ã¯ãããªæããç»é¢ä¸é¨ã®ç°è²ã®ãã¼ã®é¨åãã¿ããããã¨ç·¨éç»é¢ã«æ»ãã¾ãã ãã¦ãã¦ãã¡ãã£ã¨èéã«ããã¾ããããProcessing IDE for iOSãã®æ¹ã®è©±ã å¤æ®µã¯450åããªã³ã¯ã¯ãã¡ãã æåã«ç´¹ä»ããç¡æã§è²©å£²ãã¦ããã¢ããªã®æ¹ã¨ã®
Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
é¼»æ¯èã https://github.com/perfume-dev/example-processing ãcloneãã諸åãããªãã®processingã§Perfumeãè¸ãã¨æã£ããæ®å¿µãé³æ¥½ããªã3人ããã©ãã©ãã¦ãã ãã§ãããã¾ããããã§ãããªãæãåºããã²ã¨ã¯ãããªã«ããªãã¨æãã¾ããããã¦ã³ãã¼ããããªã½ã¼ã¹ã使ã£ã¦è¸ãããã¨ããã¾ã§æ¸ãã¦ã¿ã¾ããã git clone git://github.com/perfume-dev/example-processing.git http://processing.org/download/ ãã processing ããã¦ã³ãã¼ã 解åã㦠processing èµ·å example-processing/p5f_sample/p5f_sample.pde ãéã http://www.perfume-global.com/
æ¬ã¦ã§ããµã¤ãã¯ããã°ã©ãã³ã°ã«ãããã¸ã¥ã¢ã«ã»ã¤ã³ã¿ã©ã¯ãã£ã表ç¾ã®å ¥éã«æãé©ããéçºç°å¢ Processingï¼ããã»ãã·ã³ã°ï¼ã®å¦ç¿è¨é²ã§ãã
ããã¸ã§ã¯ã·ã§ã³ãããã³ã°ãæµè¡ã£ã¦ããããªã®ã§ãProcessingã§ããã£ã¨æ¸ãã¦ã¿ã¾ããããããªãã¯ã¹ãã£ã®é ç¹ããã¦ã¹ã§æä½ãã¦ã対象ç©ï¼å®¶å ·ã¨ãï¼ã«æå½±ç»åãã´ã£ããåãããã¨ãããã®ã§ãã ããã¸ã§ã¯ã¿åºå®ã対象ç©åºå®ãªéçã·ã¼ã³éå®ã§ãããå®éã«ãã£ã¦ã¿ãã¨ãçµæ§æ¥½ããã§ãããæã¨ãç®±ã«ã»ã³ãµãã¤ãã¦ãããã«åå¿ãã¦æ åãå¤åããããã«ãã¦ãé¢ç½ãã§ããã import processing.video.*; import processing.opengl.*; Movie mov; // åç» int selected = -1; // é¸æããã¦ããé ç¹ int pos[][] = {{0,0},{400,0},{400,300},{0,300}}; // é ç¹åº§æ¨ void setup() { size( 1024, 768, P2D); // ç»é¢ãµã¤ãºï¼é©å®èª¿æ´ï¼
ãã®ãµã¤ãã¯ç°ææ·³ã®è¬ç¾©ãä»äºãæ¥è¨ããã®ã»ã諸ã ã®æ å ±ãå ¬éãã¦ãã¾ããããããã¯ãææ¥ã®å±¥ä¿®è ã®ããã«éå»ã®ææ¥ã®å 容ã®è¨é²ãæ²è¼ããããã«å§ããã®ã§ãããããå¤ãã®äººã«å½¹ã«ãã¦ãã®ã§ããã°ã¨æããå ¨ã¦ãå ¬éãããã¨ã«ãã¾ãããåºæ¬çã«ãªã³ã¯ã¯ããªã¼ã§ããã©ã®é層ã®ãã¼ã¸ã«ãåæã«ãªã³ã¯ãã¦ããã ãã¦æ§ãã¾ãããã¾ãããªã³ã¯ããæ¨ãé£çµ¡ããã¦ããã ãå¿ è¦ãããã¾ããããµã¤ãå ã®å ¨ã¦ã®è¨äºã¯ãCreative Commons Licenseã®æ¡ä»¶ã«å¾ãéãèªç±ã«å©ç¨ãã¦ããã ãã¦æ§ãã¾ãããè¨è¿°ã®èª¤ããæè¦ãªã©ããã¾ããããã³ã¡ã³ããããã¯ã¡ã¼ã«ã«ã¦ãç¥ãããã ããã tadokoro[at]gmail.com
â»ãã¡ãã®å 容ã¯æ¢ã«å¤ãæ å ±ã¨ãªã£ã¦ãã¾ããæ°ããæ¸ãç´ããè¨äºãåç §ãã¦ãã ããã Processingã§ç»åãã¼ã¿ãæ±ã â ç»åã®åæã»ååæ ç»åã表示ãã Processingã§ç»åã表示ããããã«ã¯ãç»åãã¡ã¤ã«ããã®ã¹ã±ããã®ããé層ã«ãdataããã©ã«ããä½æãããã®ä¸ã«ç»åãã¡ã¤ã«ãå ¥ãã JepgãGIFãPNGå½¢å¼ã«å¯¾å¿ãã¦ãã ç»åã表示ããã«ã¯ãimage() é¢æ°ãç¨ãã image(ç»åãã¡ã¤ã«å, x, y); â 座æ¨(x, y)ãå·¦ä¸ã«ãã¦ãç»åã表示 image(ç»åãã¡ã¤ã«å, x, y, width, height); â 座æ¨(x, y)ãå·¦ä¸ã«ãã¦ãå¹ (width)ã¨é«ã(height)ãæå®ãã¦ç»åã表示 ç»åã表示 PImage img; void setup() { size(640, 426); img = loadImage("pho
ã¿ã¤ãã«ã®ã¨ããã§ããï¼iPadã«Arduinoãã¤ãªãã®ããã£ã¦ã¿ã¾ããï¼cdsã§æãããã»ã³ã·ã³ã°ãã¦ï¼Processingã使ã£ã¦æ¸ãããWebãã¼ã¸ä¸ã§è¡¨ç¤ºãã¦ãã¾ãï¼ ï¼â»é³å£°è§£èª¬ã¤ãã§ãï¼ ããããè¦å´ããã®ã§è¨é²ãæ®ãã¦ããããã¨æãã¾ãï¼ ã³ãã®çºç«¯ Arduinoã¨iPadãé£æºãããæ¹æ³ããããã調ã¹ã¦ããï¼USBãã¼ãã¼ãã®ãµãããããArduinoãã«ã¡ã©ã³ãã¯ã·ã§ã³ãããã使ã£ã¦iPadã«æ¥ç¶ããã¨ããæ¹æ³ãçºè¦ï¼ http://mobilecore.net/diary/diary20101127/ ããã¯é¢ç½ããã ã¨æã£ã¦å®éã«ãã©ã¤ãã¦ã¿ããããããè½ã¨ãç©´ãããã¾ãããï¼ ArduinoãUSBãã¼ãã¼ãã«ããã«ã©ã¯ãª ã¾ãï¼ï¼ã¤ç®ã®ãã¤ã³ãã¯ï¼ãã®äººã®åç»ã§ä½¿ããã¦ããArduinoã¯UNOã ã¨ãããã¨ï¼Arduino UNOã¯ï¼ããã¾ã§ã®ãã¼ã¸ã§ã³ã§ä½¿ã
é å(ãã®2ãäºæ¬¡å é å) æ¡ä»¶åå²(å ´é¢ã®åãæ¿ã) ç·´ç¿åé¡ é å(ãã®2ãäºæ¬¡å é å) ãã¨ãã°ã次ã®ãããªçµµãèãã ããã¯å¹³é¢ãæ£æ¹å½¢ã«åå²ãã¦ãåãã¹ãç½ãéã«å¡ãããããã¨ã«ãã£ã¦ãå³å½¢ã表示ãã¦ããããã¨ãã°ãçºå ãã¤ãªã¼ãããã®å½¢ã«ä¸¦ã¹ã¦å ãããã°ãæ¡å 表示ãªã©ã«ä½¿ããã ããããã®ãããªå ´åããã¹ã®ä½ç½®ã¯ã©ããã£ã¦æå®ããã®ã便å©ã ãããããã¯ãã縦ä½ãã¹ç®ã»æ¨ªä½ãã¹ç®ã¨ç¸¦ã¨æ¨ªã§æå®ããã®ãããã ãããããã§ãäºæ¬¡å é åã¨ãããã®ã使ããã¨ã«ãããããã¾ã§ã¯é åã¯ã²ã¨ã¤ã®çªå·ã§è¦ç´ ãæå®ããããããä¸æ¬¡å é åã¨å¼ã¶ãã¨ã«ããã¨ãäºæ¬¡å é åã§ã¯ãµãã¤ã®çªå·ã§æå®ããã sã¨ããååã§20Ã30ã®è¨600åã®è¦ç´ ãæã¤é åã¯ä»¥ä¸ã®ããã«å®£è¨ãã int[][] s=new int[20][30]; ä¸æ¬¡å é åã¨åæ§ã«ãããã§s[0][0], s[1][0], s[2][0],
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}