2017-08-01から1ヶ月間の記事一覧

Vector_vertex02

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_vertex01

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_ellipse02

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…

Vector_rects01

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…

Vector_ellipse01

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() { …

array_ellipse01

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…

Wave_Clock_Modefied01

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); …

rotate_rects04

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…

rotate_ellipse01

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…

curveVertex03

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…

vertex01

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,…

curveVertex02

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…

curveVertex01

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…

rotate_rects03

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…

Illustratorのスケッチ

オープンキャンパスで疲れ果てたので,Processingのスケッチはできず.その代わりに,Illustratorでのスケッチを載せる.来週のシンポジウム当日用のフライヤーです.

rotate_rects02

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…

rotate_rects01

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); …

radius_lines03

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, …

radius_lines02

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 =…

radius_lines01

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;…

colors_ellipses01

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 …

move_ellipse01

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…

random_lines04

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…

random_rotate_lines04

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 …

random_rotate_lines03

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…

fried_egg01

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 -…