Processing分類文章 顯示方式:簡文 | 列表

January 16,2008

Processing + Gif 動畫



GifAnimation is a Processing library to play and export GIF
animations. It is under a GPL license. The GIF Encoder & Decoder were written by Kevin Weiner. please see the separate copyright notice in the headers of the GifDecoder & GifEncoder classes.

或許大家都會遇到在Processing加入動畫的困擾,現在有Library可以呼叫引用插入Gif的動畫。下面是使用步驟:

1. 解壓縮後,將gifAnimation資料夾整個Copy至您安裝Processing的libraries資料夾內。(ex. C:\processing-\libraries\gifAnimation)
2. 使用gifAnimation library前,記得引用至您的sketch。
(ex. import gifAnimation.*;)
3. 更詳細的用法,參見線上範例說明


 Download Library

Posted by processing at 樂多Roodo!0:59回應(0)引用(0)

January 1,2008

簡易 Processing + Flash 通訊



Processing時常需要與Flash整合,這邊提供簡易的方法即可達到兩方通訊功能。目前僅送出字串給Flash,更進階的方式可以產生xml格式進行溝通。下面也放上範例檔(port 9007),供需要的朋友研究。

Processing 部分:
import processing.net.*;
int port = 9007;
Server myServer;
byte zero = 0;
int total = 1;
int total2 = 2;
void setup(){
size(200, 200);
myServer = new Server(this,port);
}
void draw(){
myServer.write(total+","+total2);
myServer.write(zero);



Flash AS部分:
createSocket ();
function createSocket () {
 _root.createTextField("inputlabel",4,50,100,50,20);
 inputlabel.text = "Input:";
 _root.createTextField("inputer",3,100,100,200,20);
 inputer.border = true;
 serialServer = new XMLSocket ();
 serialServer.connect ("127.0.0.1", 9007);
 serialServer.onConnect = function (success) {
  trace ("connected " + success);
 };
 serialServer.onClose = function () {
  trace ("closed");
 };
 serialServer.onData = function (data) {
  inputer.text = data;
 };
}

 Download Source Code


Posted by processing at 樂多Roodo!21:33回應(1)引用(0)

October 28,2007

Processing 遇上視覺時尚

Fashion Photography and Generative Artwork by Clayton Cubitt and Tom Carden

早年Clayton Cubitt使用Processing創造一系列粒子應用的作品,由於視覺多樣性與幻化曲線吸引了攝影家Tom Carden的注意,Tom Carden看出圖像與流行時裝結合的淺力,於是提出合作。由Clayton Cubitt製作出高解析的黑白圖樣曲線,並與照片合成,最後應用在Metropop雜誌。

Source code: http://www.processing.org/exhibition/works/metropop/applet.html

...繼續閱讀

Posted by processing at 樂多Roodo!18:00回應(0)引用(0)

Processing 0133 beta 釋出

0133 BETA | 26 October 2007

Processing is Open Source Software. The PDE (Processing Development Environment) is released under the GNU GPL (General Public License). The export libraries (also known as 'core') are released under the GNU LGPL (Lesser General Public License).

昨天打開Processing跳出更新訊息,才發現又到了0133版。十月可說是更新頻繁,在10/22就發布了0131、0132版。而0133則修正了OpenGL輸出。


   
  

Posted by processing at 樂多Roodo!11:24回應(0)引用(0)
 [1]