2012-10-06から1日間の記事一覧

明るい所をマウスポイントするとサーボ1が、暗い所をマウスポイントするとサーボ2が動く

processing import processing.video.*; import processing.serial.*; Capture camera; Serial myPort; void setup() { size(480, 320); myPort = new Serial(this,Serial.list()[1],9600); camera = new Capture(this, width, height, Capture.list()[2], 1…

暗いところをマウスポイントしてるときだけサーボが動く

processing import processing.video.*; import processing.serial.*; Capture camera; Serial myPort; void setup() { size(480, 320); myPort = new Serial(this,Serial.list()[1],9600); camera = new Capture(this, width, height, Capture.list()[2], 1…

暗いところをマウスポイントするとarduinoが点灯

processing import processing.video.*; import processing.serial.*; Capture camera; Serial myPort; void setup() { size(480, 320); myPort = new Serial(this,Serial.list()[1],9600); camera = new Capture(this, width, height, Capture.list()[2], 1…

arduinoとprocessingの通信

参考 電子工作ゼミ2013: Arduino-Processingシリアル通信 ほぼ引用ソースです 少し加筆 processing import processing.serial.*; Serial myPort; void setup(){ String s[] = Serial.list(); for(int i=0; i

illustratorでphotoshopの色選択ってどうやるの?

これイラレだとないのかしら? てかなんて名前なんだろう 検索できないんだが、名称がわからなくて。 追記: カラーピッカーといってダブルクリックででるのか。 自己解決。

illustratorとphotoshopのショートカット

ツール系 ツール illustrator photoshop 補足 ハンド(手のひら) h h なし 拡大 cmd + + cmd + + +はshift + ; で打ち込む 縮小 cmd + - cmd + - なし 長方形 m u Photoshopだとmは選択ツール 円 l u shift + uで図形の切り替え 選択 v v なし 新規レイヤー c…

マウスのある位置の色を表示する

import processing.video.*; Capture camera; void setup() { size(480, 320); camera = new Capture(this, width, height, Capture.list()[2], 12); smooth(); noStroke(); } void draw() { background(0); noStroke(); camera.loadPixels(); //カメラ画像…

USBカメラを使うソース

参考 b-06 ライブカメラを使う - Processing 学習ノート import processing.video.*; Capture camera; void setup() { size(480, 320); camera = new Capture(this, width, height, Capture.list()[2], 12); // Capture.list() => String[] から該当のものを…