• Remix
  • Share
  • New Entry

on 26 Oct 2021
  • 15
  • 281
  • 0
  • 0
  • 280
% See comment section for a more complete version with comments.
% Inspired by Massive Attack's Teadrop music video.
% https://youtu.be/u7K72X4eo_s?t=53
[x,y,z]=sphere(600);
v=[1,1];
d=sqrt((x(:)-[-.4,.4]).^2+(y(:)+v).^2+(z(:)-v/5).^2); % distance to each eye
f=@(x,A)1./((1+.4.*exp(A*x+4)).^2); % Logistics fcn for eye orbits and lids
q=[f(d/.7,-9)*.2+.8,f(d/.3,-7)*-.1+1]; % distance to sphere center [Orbits, lids]
[T,P,R]=cart2sph(x,y,z);
R(:)=prod(q'); %#ok<UDIM> combined profile
[a,p,c]=sph2cart(T,P,R);
surf(a,p,c,EdgeA=0)
colormap copper
light
material dull
% axis equal
camva(2)
view([7,14])
Remix Tree