My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

Prosessing Clock

Prosessing Clockとは

プログラミング言語であるProcessingのソースコードを時間の経過とともにランダムで実行してくれるデスクトップ時計です。

下記のURLよりダウンロードすることができます。

http://prosessing-clock.googlecode.com/files/processing-clock-2.0b.air

Prosessingのサンプル

/*
  Name: Circles
  Description: It draws in two or more yen at random.
  Version: 1.1
  Author: Noritaka Horio
  Website: http://sharedhat.heteml.jp/
*/

int loopCount = 20;
int plusValue = 5;

void setup() {
  size(300,165);
  background(#FFFFFF);
  smooth();
  noLoop();
  noStroke();
}

void draw() {
  
  for (int i = plusValue; i < (plusValue * loopCount); i += plusValue) {
    fill(color(
      random(0, 255), random(0, 255),
      random(0, 255), random(0, 100)
    ));

    float xPos = random(0, width);
    float yPos = random(0, height);

    if (xPos < i) { xPos = i; }
    if (yPos < i) { yPos = i; }
    ellipse(xPos, yPos, i, i);
  }

}


Powered by Google Project Hosting