//=time() ?>
HSBカラーで色を指定するとき、使う色を決めてない場合は、色彩を175°〜225° or 325°くらいにしちゃう😕
#p5js #processing #creativecoding #generativeart
int i,j,r;
size(720,720);colorMode(HSB);noStroke();for(i=0;i<15;i++){push();translate(i%3*360+i/3%2*180,i/3*180);rotate(PI/4);clip(-128,-128,256,256);for(j=200;j>0;j-=10)for(r=0;r<6;r++){fill((i*99+j)%255,160,255-j/2);circle(cos(r+j)*j,sin(r+j)*j,j);}pop();}
#つぶやきProcessing
ぐるぐるしてるだけ
setup=_=>{
createCanvas(R=800,R)
rectMode(CENTER)
background(0)
blendMode(ADD)
colorMode(HSB,R)
fill(0)
for(i=0;i<R;i+=.1){
push()
translate(R/2,R/2)
rotate(sin(t=(R/i*5)))
stroke(abs(sin(i/R+t)*R),R*.7,R,t*3)
square(0,0,i,i/t/4)
pop()}}
#つぶやきProcessing
Practicing digital painting for the inevitable painted Ringo page, but I'm having a lot more fun than expected. Just the oil paint brush in PS and hsb sliders.
#つぶやきProcessing
w=t=512;h=w/2;W=1.0/w;N=noise;p=[(i%w*W,i/w*W,i/2)for i in range(w*w)]
def setup():size(w,w);colorMode(HSB)
def draw():global p,t;clear();p=[stroke(i%h,h,h)or point(x*w,y*w)or(x+(N(x,y+.1,t)-N(x,y,t))*.1,y-(N(x+.1,y,t)-N(x,y,t))*.1,i)for x,y,i in p];t+=.0001
size(720,720);
colorMode(HSB,9);
fill(4,4,9);
triangle(20,700,180,550,260,650);
for(int i=0;i<300;i++){
fill(random(9),9,9);
resetMatrix();
translate(random(500)+220,600-random(500));
rotate(random(PI));
rect(0,0,random(20),random(20));
}
#つぶやきProcessing
size(720,720);
colorMode(HSB,9);
float x;
for(x=0;x<260;x++){
stroke(1,9,x%8<4?1:3);
line(x+230,310-sqrt(16900-sq(130-x)),x+230,510);
}
fill(1,9,2);
circle(360,510,260);
fill(1,9,7);
noStroke();
for(x=0;x<TAU*2;x+=.03)
circle(cos(x)*x*9+360,sin(x)*x*9+510,10);
#つぶやきProcessing
#!/bin/bash
convert -size 2000x2000 xc: +noise Random r.png
convert r.png -virtual-pixel tile -blur 0x100 -auto-level r2.png
convert r2.png -separate -background white \
-compose ModulusAdd -flatten -channel R -combine +channel \
-set colorspace HSB -colorspace RGB r3.png
float r,d,i=0,o=0,A=PI/24;
colorMode(HSB,9);
size(720,720);
clear();
translate(360,360);
for(r=0;r<720;r+=(i+=2),o+=A){
fill(i%9,4,7);
for(d=o;d<TAU+o;d+=A*2){
triangle(cos(d)*r,sin(d)*r,cos(d+A)*(r+i),sin(d+A)*(r+i),cos(d-A)*(r+i),sin(d-A)*(r+i));
}
}
#つぶやきProcessing
def setup():size(400,400)
def draw():
colorMode(HSB,2,2,2)
a=lambda i,x,y,z: abs(cos(y+i)+sin(x+(frameCount*.1-4)*z))%2
f=lambda t:(a(0,*t),a(3,*t),a(6,*t))
[[stroke(*f(f(f((i*.03,j*.03,1))))),point(i,j)]for i in range(400) for j in range(400)]
#つぶやきProcessing
float i,s,t,x,y,n=300;size(600,600,P2D);colorMode(HSB,9);background(9);noFill();
beginShape();
for(i=0;i<n/2;i++){
strokeWeight(20*random(-1,1));stroke(random(9),8,8);
s=random(n*.9);t=random(PI*2);x=s*cos(t);y=s*sin(t);
curveVertex(x+n,y+n);}
endShape(CLOSE);
#つぶやきProcessing
float i,s,t,x,y,n=300;
size(600,600,P2D);
colorMode(HSB,9);
background(9);
noStroke();
beginShape();
for(i=0;i<n/2;i++){
fill(random(9),9,9);
s=random(n*.9);
t=random(PI*2);
x=s*cos(t);
y=s*sin(t);
curveVertex(x+n,y+n);
}
endShape(CLOSE);
#つぶやきProcessing
size(800, 800);
colorMode(HSB);
translate(400, 400);
float d;
for(d = 800; d > 0; d -= random(99)){
fill(random(255), 64, 192);
circle(0, 0, d);
}
for(d = 0; d < TAU; d += PI / 8.0){
rotate(d);
fill(random(255), 64, 192);
ellipse(200, 0, 350, 20);
}
#つぶやきProcessing
finally did this (if mitsu wasnt in the dating hsb category he'd be in the i might date)