はぅ君 · @hau_kun
4 followers · 8 posts · Server mstdn.jp

setup=_=>createCanvas(480,540)+noStroke()+square(15,15,450, 40)+push()+drawingContext.clip()+background(0)+icon()+pop()+textAlign(CENTER)+textSize(60)+text(TITLE,240,525)

TITLE="Eternal Snow"

function icon(){
S=strokeWeight
stroke(255,99)
for(r=0;r<TAU;r+=PI/3)f(240,240,r,99)}

function f(x,y,r,d){
if((d/=1.4)>2)[1,-1].map(e=>S(d/9)+line(x,y,X=x+cos(R=r+PI/3*e)*d,Y=y+sin(R)*d)+f(X,Y,R,d))}


#p5icons #トゥートProcessing

Last updated 2 years ago

はぅ君 · @hau_kun
3 followers · 3 posts · Server mstdn.jp

こんな感じでアイコンが並んだらきれいだなって思ったのでまた見切り発車ではじめてみたなう。

#p5icons #トゥートProcessing

Last updated 2 years ago

はぅ君 · @hau_kun
3 followers · 2 posts · Server mstdn.jp

setup=_=>createCanvas(96,116)+noStroke()+square(3,3,90, 15)+push()+drawingContext.clip()+background(0)+icon()+pop()+textAlign(CENTER)+text(TITLE,48,110)

TITLE="Cardioid"

function icon(){
noStroke()
colorMode(HSB)
for(y=0;y<96;y+=14)for(x=y/14%2*7;x<96;x+=14){
fill(random(360),50,100)
beginShape();
for(r=0;r<TAU;r+=.1){
vertex(x+5*(1+cos(r-PI/2))*cos(r)**3,y+5*(1+cos(r-PI/2)*1.5)*sin(r))
}
endShape();
}}

#p5icons #トゥートProcessing

Last updated 2 years ago

なるほど@創作 · @nullhodo
50 followers · 1079 posts · Server fedibird.com

c=0,draw=$=>{c++?clear(noStroke()):createCanvas(W=600,W,WEBGL),background``,rotateX(-.3),rotateY(c/30),E=ellipsoid,F=fill,l=128,T=$=>translate(0,$),push(F``),rotate(.2),T(-135),pop(E(30,8,20)),T(-80),cylinder(3,l),ambientLight(200),pointLight([W],W,-(3*W),2*W),specularMaterial(W),F``,T(80),E(99,50,99,l,l),T(80),E(l,50,l,l,l),T(-160),F``,E(40)};
// :t_akeome: :t_kotoyoro:

#DCB #トゥートProcessing #7A5 #D70

Last updated 2 years ago

なるほど@創作 · @nullhodo
52 followers · 1028 posts · Server fedibird.com

c=0;draw=_=>{c++?noStroke(rotateX(-.7)):createCanvas(W=600,W,WEBGL);B=box,P=pointLight,T=translate,P([W],0,-300,800),lightFalloff(.4,.001,0),Z=200,S=sin(t=c/20),I=abs(S+abs(S))*10,T(0,60-I*3),fill``,B(x=Z-I,y=Z+I,x),push(fill``),T(0,-y/2),B(x,5,40),T(0,y/2,5),pop(B(40-I/5,y+5,x)),T(0,I*3-x/2),specularMaterial` Holidays`,P(Z,Z,0,0,400),rotateY(c/Z),cone(700,1e3)}

#トゥートProcessing #xmas #F00 #2D2 #happy

Last updated 2 years ago

なるほど@創作 · @nullhodo
52 followers · 1028 posts · Server fedibird.com

c=0;draw=_=>{c++?background``:createCanvas(W=600,W);stroke``,T=translate,T(w=W/2,w),rotate(1),T(-w,-w);for(x=4;x--;)for(y=4;y--;){T(X=x*W/3,Y=y*W/3);for(t=99;t--;)push(),rotate((t*TAU-c)/99),T(r=67/PI*atan(tan(t*4/99*PI))+67,0),pop(rect(-r,-4,r*2,8));T(-X,-Y)}}
//

#FD0 #トゥートProcessing

Last updated 2 years ago

なるほど@創作 · @nullhodo
52 followers · 1028 posts · Server fedibird.com

c=0;draw=_=>{c++?clear(noStroke(ortho())):createCanvas(W=600,W,WEBGL);R=rotate,T=translate,U=push,camera(0,0,99,0,0,0,0,1,0),T(0,0,80),rotateX(c/99),R(c/33),pointLight([W],400,-400,400),lightFalloff(.4,1e-3,0),N=550;for(i=5;i--;){U(),R(i*TAU/5),T(80,0);for(t=N;t--;)U(),R(t*TAU/N),T(120,0,50*sin(t*TAU/N)),pop(sphere(10));pop()}}
//

#トゥートProcessing

Last updated 2 years ago

なるほど@創作 · @nullhodo
52 followers · 1028 posts · Server fedibird.com

c=0;draw=_=>{c++?background(0):createCanvas(W=720,W,WEBGL);ambientLight(0),pointLight(W,170,0,W,-W,W),specularMaterial(W),C=cos,S=sin,T=translate,M=750,ortho();for(i=3;i--;){r=135-S((v=C(atan(tan(c/20))))+abs(S(v)))*50;for(t=M;t--;)T(X=r*C(t1=i*TAU/3)+150*C(u=t*TAU/M),Y=r*S(t1)+150*S(u),Z=20*S(u*3)),sphere(20,99,99),T(-X,-Y,-Z)}}
//

#トゥートProcessing

Last updated 2 years ago

なるほど@創作 · @nullhodo
52 followers · 1028 posts · Server fedibird.com

c=0;draw=_=>{c++,createCanvas(W=400,W),C=c/W,N=noise,E=(x,y)=>ellipse(x,y,20,50),noStroke(background``),w=200,translate(w+50*(N(C)-.5),w+50*(N(C+W)-.5));for(t=24;t--;){push(),Z=TAU/24,fill(50+w*N(t*Z*W),150,w,128),rotate(T=t*Z-C),P=99*N(T+W)-50,Q=99*N(T-W)-50,pop(E(r=120*N(T)+60,0),E(r+P,P),E(r+Q,Q))}}

#トゥートProcessing

Last updated 2 years ago

なるほど@創作 · @nullhodo
52 followers · 1028 posts · Server fedibird.com

// つぶやき惜しくも入らなかったので供養
c=0;draw=_=>{c++?noStroke():createCanvas(W=540,W)
M=c%120,B=M<61,P=PI/2,R=rect,background((1-B)*255)
for(a=9;a--;)for(b=9;b--;)push(),translate(a*90-15*B+15,b*90-B*15+15),B?rectMode(CENTER)+rotate(P*sin(P*(c%60)/60))+pop(R(0,0,30,90),R(0,0,90,30)):fill(0)+pop(R(x=-90*sin(P*(M-60)/60),x,60))}
//
// ▼実際に再生してみる
// editor.p5js.org/nullhodo/sketc

#トゥートProcessing #creativetoots #TootProcessing #p5js

Last updated 2 years ago

なるほど@創作 · @nullhodo
52 followers · 1028 posts · Server fedibird.com

c=0;draw=_=>{c++?background``:createCanvas(W=600,W,WEBGL)
noStroke(lights``)
F=fill,O=pop,S=sphere,T=translate,U=push,T(0,0,450)
for(i=27;i--;){U(),rotateY(i*TAU/27+c/99),T(0,0,400)
for(y=340;y--;)U(),T(0,y-170),F``,O(S(30))
for(y=300;y--;)U(),T(10+10*sin(y/9),y-150,-30),F``,
S(10),T(-20,0),F``,O(S(10))
O(T(0,W/2),F``,cylinder(5,W))}}
//#creativeToots
//editor.p5js.org/nullhodo/sketc

#トゥートProcessing #b32 #cb2 #b83 #a52 #TootProcessing #p5js

Last updated 2 years ago

incre.ment · @incre_ment
564 followers · 159 posts · Server mastodon.lol

Not sure the best way to do this. I'm thinking CW on the wall of code, but then can I do that and *not* have the sensitive warning on the image?


t=0,draw=o=>{for(createCanvas(w=600,w,WEBGL),t+=.01,t%=1,background(0),smooth(),rotateX(h=-PI/5),rotateZ(h),R=translate,i=20;i--;)for(p=(i+t)/20,y=800*p-400,a=0;a<TAU;a+=TAU/512)r=pow(map(y,-400,400,.4,1),7),push(),R(x=999*r*sin(a),y,(z=999*r*cos(a))-100),noStroke(),fill(w*(1-p)),sphere(2),R(0,105,0),fill(0),box(5,200,5),pop()};

#トゥートProcessing

Last updated 2 years ago

なるほど@創作 · @nullhodo
52 followers · 1028 posts · Server fedibird.com

取り敢えず今週中に のfedibird/mastodon版 (281文字以上500字以内) をやってみたいのである

#トゥートProcessing #つぶやきProcessing

Last updated 2 years ago

incre.ment · @incre_ment
564 followers · 159 posts · Server mastodon.lol

@villares @incre_ment@mastodon.social
I think you should do the first ever !!! I'll definitely follow suit.

#トゥートProcessing

Last updated 2 years ago

incre.ment · @incre_ment
564 followers · 159 posts · Server mastodon.lol

@villares
Sounds like we have Hau Kun's blessing. Feels like asking was the right thing to do.
it is!

#トゥートProcessing

Last updated 2 years ago