このウィキの読者になる
更新情報がメールで届きます。
このウィキの読者になる
カテゴリー
最近更新したページ
2011-12-05
2010-02-05
2008-01-31
2007-12-09
2007-11-22
2007-11-04
2007-10-06
2007-05-17
2007-05-13
2007-05-11
2007-05-10
最新コメント
1-14 by awesome things!
117 by stunning seo guys
Processing4 Data by stunning seo guys
送信ボタンの仕組み by stunning seo guys
511 by stunning seo guys
510 by music production software
ProStr by awesome things!
FrontPage by check it out
CSV形式とは by check it out
Menu

Processing8 Trans

/*--Transform--*/
float x, y;
float size = 40.0;

void setup()
{
size(200,200); noStroke(); frameRate(30);
}

void draw()
{
background(102); x = x + 0.8; if (x > width + size) { x = -size; } translate(x, height/2-size/2); fill(255); rect(-size/2, -size/2, size, size); // Transforms accumulate. // Notice how this rect moves twice // as fast as the other, but it has // the same parameter for the x-axis value translate(x, size); fill(0); rect(-size/2, -size/2, size, size);
}
float a = 0.0;
float s = 0.0;

void setup()
{
size(200,200); noStroke(); rectMode(CENTER); frameRate(30);
}

void draw()
{
background(102); a = a + 0.04; s = cos(a)*2; translate(width/2, height/2); scale(s); fill(51); rect(0, 0, 50, 50); translate(75, 0); fill(255); scale(s); rect(0, 0, 50, 50);
}
void setup()
{
size(200,200); noStroke(); fill(255); frameRate(30);
}

float angle;
float cosine;
float jitter;

void draw()
{
background(102); if(second()%2 == 0){ jitter = (random(-0.1, 0.1)); } angle = angle + jitter; cosine = cos(angle); translate(width/2, height/2); rotate(cosine); rectMode(CENTER); rect(0, 0, 115, 115);
}
2006年11月18日(土) 10:37:33 Modified by ID:hElD8hu5PA




スマートフォン版で見る