- /
-
Textured cube w/congruent sides
on 31 Oct 2021
- 4
- 50
- 0
- 0
- 270
% Trying to make a textured cube with congruent sides...
set(gca,Color='k');
axes(colorm=summer);
N=315;
a=-pi:0.02:pi;
g=abs(ifft2(randn(N)./abs(a+i*a').^2))-1.5;
g=g+g';
m=ind2rgb(round(rescale(g,0,255)),hot);
[u,v,w]=cart2sph(a,a',pi);
[x,y,z]=sph2cart(u,v,w+g*2);
s=@surf;
s(x,y,z,m);
hold
s(x,-z,y,m);
s(-z,x,y,m);
axis equal off
shading flat
camlight