はぅ君 · @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