//=time() ?>
f=lambda x,y:abs((sin(x)+y)%2-1)
g=lambda x,y,z:(f(x,y),f(y,z),f(z,x))
N=600
size(600,600)
colorMode(HSB,1)
for i in range(N):
for j in range(N):
h,s,b=g(*g(8.*i/N,20.*j/N,0))
set(i,j,color(h*.2+j*1e-3,s,b*3+.2))
#つぶやきProcessing #PCD2021 海!
add_library("handy")
H=HandyRenderer(this)
D,V=800,H.curveVertex
size(800,800)
colorMode(3,9)
for j in range(22):
fill(random(9),8,8)
H.beginShape()
V(0,D);V(0,D)
for i in range(41):V(20*i,40*(j+cos(3*i+j*i)*.8))
V(D, 40*j);V(D,D);V(D,D)
H.endShape()
#つぶやきProcessing
function setup(){for(createCanvas(400,400),i=0;i<35;i++){let a=random(400),n=random(400);fill(255,170,198),arc(a,n,50,50,radians(random(0,100)),radians(260),PIE),fill(185,229,153),arc(a,n,50,50,radians(random(200,300)),radians(320),PIE)}}function draw(){} #つぶやきProcessing
setup=()=>{for(createCanvas(202,202),background(0),a=[],noStroke(),j=0;j<64;j++)a.push(random(0,4));for(m=0;m<9;m++){for(k=0;k<9;k++)0==a[k]?fill(9):fill(random(100,255),random(255),random(255)),rect(1+25*k,1+25*m,random(2,25));a.splice(0,8)}},draw=()=>{};// #つぶやきProcessing
t=0
draw=_=>{t||(createCanvas(720,720),colorMode(HSB));
(B=blendMode)(BLEND)
background(0)
B(ADD)
t+=3
for(y=-300;y<999;y+=27)
for(x=0;x<750;x+=30){
fill((N=noise(x*.01,(y-int(t/27)*27)*.01,t*.002))*999%360,75,60,.3)
circle(x,y+t%27,sq(N)*300)
}
}
#つぶやきProcessing
setup=o=>{for(createCanvas(w=512,w,WEBGL),colorMode(HSB,8,9,9),d=50,t=translate,r=rotate,m=random,i=0;i<w;i++)r(a=7*PI/w),push(),stroke((e=i/d)%8,3,8),t(s=i/3,i/2),t(g=m(1,3),g),r(b=a*i),t(m(d),g),fill((e+g/3)%8,g,g+8),rotateX(b+g),box(d,d+s),pop()};//#つぶやきProcessing
w,h=width,height
c=https://t.co/IFTqj9iMQE w,h
c.start
a=https://t.co/ivmUvlAEoz{https://t.co/pJrer7sfQZ w,h}
draw{
a.unshift a.pop
a[0].beginDraw{a[0].image c,0,0}
background 0
t=h/a.size
a.each.with_index{|g,i|
copy g,0,i*t,w,t,0,i*t,w,t
}}
#つぶやきProcessing #RubySketch
settings<-function()size(800,500)
setup<-function(){
clear()
stroke(240)
fill(232,76,23,200)
ellipse(400,250,420,420)
for(h in -100:600){
for(w in 0:800){
point(w,h+250*(noise(w/200,h/100)-.5))
if(random(42000)<1){
d=random(25,100)
ellipse(w,h,d,d)
}}}}
#つぶやきProcessing
1ツイートに収まるProcessingプログラムで作った画像や映像をTwitterに投稿する #つぶやきProcessing という活動を毎日行っています。
添付画像はすべて1ツイートに収まるProcessingのプログラムでできています。
Processing → https://t.co/ynQwP6S1RR
#VIVET2020オンライン
#つぶやきProcessing
#メロンの日 網廻し
float F,f,i,w;
void setup(){size(500,500);stroke(-1);noFill();strokeWeight(3);}
void draw(){
background(0,90,0);F=400*cos(f+=.01);translate(250,250);
for(i=0;i<TAU;i+=PI/4)for(w=F;w<200+F;w+=20){
rotate(PI/4);ellipse(0,0,w,400-w);
}
}
唐突ですが、なんとなくやりたくなったので花札をつぶやきProcessingしました。ススキの表現はこの文字数制約の中ではかなり難儀でした・・・
最終的にかなり花札っぽくなったので、満足!
Hanafuda "Susuki-Ni-Tsuki" | 花札『芒に月』
https://t.co/MKFZrvY6d2
size(800,800,P3D)
background(20)
translate(400,400,0)
for j in range(6):
rotateZ(1.05)
with push():
for i in range(99):
translate(65,0,0)
rotateX(.1)
rotateY(.2)
scale(.95)
fill(abs(sin(i+j))*200)
box(100)
#つぶやきProcessing
float t,r,T;
void setup(){size(720,720);noStroke();colorMode(HSB);}
void draw(){
clear();
t+=.003;
for(r=0;r<TAU*9;r+=.2){
fill(r*r%255,99,255,T=tan(r+t)*99);
arc(cos(2*r+t)*r*9+90+T,sin(9*r+t)*r*9+360+T,r,r*8,r,r+PI/2);
}
copy(0,0,360,720,720,0,-360,720);
}
#つぶやきProcessing
float t,x,y,r,N;void setup(){size(720,720);};void draw(){clear();t+=.005;for(y=0;y<780;y+=60)for(x=0;x<780;x+=60)for(r=0;r<TAU;r+=TAU/((x+y)/60%9+2))curve(x,y,x,y,x+cos(r+(N=noise(x,y,t)*9))*cos(t+N)*30,y+sin(r+N)*sin(t-N)*30,cos(r+x)*30*N+x,sin(r+x)*30*N+y);}
#つぶやきProcessing
#つぶやきProcessing
R=random
size(724,724)
clear()
L=range(3000)
for j in [0]*25:
r=0;filter(BLUR,2)
for i in L:t=i*2.52;t/=2;c=R(999);stroke(c,c-r*9+R(300),c-r*2+R(100),300-r);x=r*cos(t)+R(30)+362;point(x,.3*r*sin(t)+R(9)+420-x*.2);r+=.1
for j in L:circle(R(724),R(724),R(2))
setup=_=>{createCanvas(w=720,w)//#つぶやきProcessing
C=['#fbb','#694','#333','#fff']
a=new Date()%2
fill(C[a])
stroke(C[a+2])
v=40
u=10*sqrt(3)
f=s=>triangle(0,0,20,0,30,s*u)
for(k=v*v;k--;){
push()
translate(k%v*30,u*2*(k/v|0)-k%v*u)
for(i=6;i--;)rotate(PI/3),f(1),f(-1)
pop()}
}
https://t.co/SXPXNolvlR
初めて作ったジェネラティブアートarcCircleです。
#つぶやきProcessing しか280文字のジェネラティブアートしか書いたことなかったけど、勉強して2ヶ月と24日でここまで描けるようになりました。4/8日の時点では動画の書出も関数もクラスも分かりませんでした。頑張った!^^!
f=lambda x,y:abs(sin(x)+log(y))
g=lambda x,y,z:(f(y,z),f(z,x),f(x,y))
size(800,800)
colorMode(HSB,9,1,1)
for i in range(800):
for j in range(800):
x,y,z=g(*g(*g(i*.005,j*.005,dist(i,j,200,200)*.025)))
m=max(x,max(y,z))
set(i,j,color(x/m+5,y/m,z/m))
#つぶやきProcessing
f=lambda x,y,z:(x*.02+y*.03+z*.06)%1
g=lambda x,y,z:(f(x,y,z),f(y,z,x),f(z,x,y))
size(800,800)
colorMode(HSB,1,1,1)
for i in range(800):
for j in range(800):
set(i,j,color(*g(i*.2,j*.2,0)))
#つぶやきProcessing