2017-08-01から1ヶ月間の記事一覧
PVector pos; PVector vel; PVector fri; float r; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); pos = new PVector (0, 0); vel = new PVector(1, 1); background(0, 0, 100); } void draw() { fill(0, 0, 100, 3); rect(-50, -50,…
PVector pos; PVector vel; float r; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); pos = new PVector (0, 0); vel = new PVector(1, 1); background(0, 0, 100); } void draw() { fill(0, 0, 100, 5); rect(0, 0, width, height); …
PVector pos; PVector vel; float rad; int h =0; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); background(0, 0, 100); noFill(); smooth(); } void draw() { rad = radians(frameCount); float x = width/2 + (200* cos(rad)); float y…
PVector pos; PVector vel; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); rectMode(CENTER); pos = new PVector(width/2, height/2); background(0, 0, 100); } void draw() { vel = new PVector(random(-5, 5), random(-5, 5)); pos.add…
PVector pos; PVector vel; PVector gra; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); frameRate(24); fill(150, 80, 100); pos = new PVector(width/2, height/2); vel = new PVector(random(-5, 5), random(-5, 5)); } void draw() { …
int NUM = 100; //配列の数 //位置のベクトルの配列 PVector[] location = new PVector[NUM]; //速度のベクトルの配列 PVector[] velocity = new PVector[NUM]; void setup() { size(500, 500); //800x600pixelの画面を生成 colorMode(HSB, 360, 100, 100, 1…
float angnoise, radiusnoise; float xnoise, ynoise; float angle = -PI/2; float radius; float strokeCol = 254; int strokeChange = -1; void setup() { size (500, 500); smooth(); frameRate(30); background(255); noFill(); angnoise = random(10); …
int x = 0; int y = 0; float d = 1; void setup(){ size(500, 500); colorMode(HSB, 360, 100, 100); background(0, 0, 100); noStroke(); smooth(); } void draw(){ fill(0, 0, 100, 60); rect(0, 0, width, height); pushMatrix(); translate(x, y); rota…
void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); smooth(); noStroke(); background(0, 0, 100); } void draw() { translate(width/2, height/2); rotate(frameCount); fill(0, 0, 100); rect(0, 0, width, height); fill(frameCount%360, 1…
void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); noStroke(); } void draw() { fill(0, 0, 100, 20); rect(0, 0, width, height); fill(80, 70, 80, 50); beginShape(); curveVertex(random(width), random(hei…
float x, y; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); background(0, 0, 100); strokeWeight(1); } void draw() { translate(-100, -100); for (int i =0; i < 100; i += 1) { translate(100, 100); x = sin(frameCount) + random(0,…
float radius = 100; int centx = width/2; int centy = height/2; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); noFill(); frameRate(24); smooth(); } void draw() { noStroke(); fill(0, 0, 100, 10); re…
float radius = 200; int centx = width/2; int centy = height/2; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); noStroke(); frameRate(12); smooth(); } void draw() { fill(0, 0, 100); rect(0, 0, width…
void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); rectMode(CENTER); smooth(); noStroke(); background(0, 0, 100); } void draw() { pushMatrix(); translate(width/2, height/2); float a = atan2(mouseY-height/2, mouseX-width/2); rota…
オープンキャンパスで疲れ果てたので,Processingのスケッチはできず.その代わりに,Illustratorでのスケッチを載せる.来週のシンポジウム当日用のフライヤーです.
int step = 50; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); frameRate(12); noStroke(); smooth(); } void draw() { for ( int y = 0; y < height; y += step) { for ( int x = 0; x < width; x += step) { pushMatrix(); transla…
int x = 0; int y = 0; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); smooth(); rectMode(CENTER); noStroke(); background(0, 0, 0); } void draw() { fill(68, frameCount%100, 100); rect(x, y, 10, 10); rect(x, height-y, 10, 10); …
int centx; int centy; float x, y; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); strokeWeight(3); frameRate(3); smooth(); int centx = 0; int centy = 0; } void draw() { noStroke(); fill(0, 0, 100, …
int centx; int centy; float x, y; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); strokeWeight(3); smooth(); int centx = 0; int centy = 0; } void draw() { translate(width/2, height/2); for (int i =…
void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); strokeWeight(1); frameRate(10); smooth(); } void draw() { float radius = 5; int centx =width/2; int centy = height/2; float x, y; float lastx = -999;…
int r = 1000; int b = 99; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); noStroke(); smooth(); background(0, 0, 99); } void draw() { fill(frameCount%360, 100, b); ellipse(width/2, height/2, r, r); r = r - 20; b = b -5; if (r …
int x = 0; int y = 0; boolean frag; int d = 1; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); background(0, 0, 100); noStroke(); smooth(); frag = false; } void draw() { fill(0, 0, 100); rect(0, 0, width, height); fill(#FFF41…
boolean frag; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); background(360); smooth(); frameRate(10); frag = false; } void draw() { if (frag == false) { line(random(width), 0, random(width), height); frag = true; } else { l…
boolean flag; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); smooth(); frameRate(6); flag = false; strokeWeight(1); } void draw() { int xstep = 10; int ystep = 50; float lastx = -999; float lasty …
void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); strokeWeight(1); smooth(); frameRate(5); } void draw() { int xstep = 10; int ystep = 50; float lastx = -999; float lasty = -999; float ynoise = rando…
void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(360); smooth(); frameRate(10); } void draw() { noStroke(); fill(360, 20); rect(0, 0, width, height); float y = height/2 + sin(frameCount)*10; float x = width/2 -…