W=540;S=80
T=translate
def setup():size(W,W,P3D)
def draw():clear();T(W/2,W/2);rotate(frameCount*.03,1,0,0);F(S)
def F(s):s>1 and[[push(),T(w*s,h*s,d*s),F(s/3.),pop()]for w in[-1,0,1]for h in[-1,0,1]for d in[-1,0,1]if w^h^d<1^w^h^d and mag(w,h,d)>0]or box(s*3)
#つぶやきProcessingpic.twitter.com/fHJI0xpcpP
Replying to @hellonearthis
I have only used IFS, so I think it is possible. If you want to rewrite it, change w^h^d<1^w^h^d to (w+h+d)%2==0. terrible code...
3:51 PM - 28 Mar 2020
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
