• Remix
  • Share
  • New Entry

on 20 Oct 2022
  • 12
  • 18
  • 0
  • 0
  • 271
% Calla Lilly
% Made of one big petal, and a single big stamen
[R,T]=ndgrid(0:.01:1,0:.02:2);
% Compute a petals curve
W=R.*((1-abs((1-mod(T,2))))*.7+.3);
% Compute the disk with the petals built-in
X=W.*cospi(T);
Y=W.*sinpi(T);
% Convert Z to have an S curve to it to make it fluted
Z=(-cospi(W*1.4)+1).^.3;
% Draw the stamen
g=@(i)i(20:50,50)/4;
plot3(g(X),g(Y),g(Z*4),'o',Color='#FB2');
% Draw flower body
surface(X,Y,Z);
shading interp
% Perfect the Axes, etc
axis equal off
light
material([.8
.8
.4])
colormap white
set(gcf,Color='#2a2')
Remix Tree