• Remix
  • Share
  • New Entry

on 29 Oct 2021
  • 13
  • 1.41K
  • 1
  • 0
  • 273
% Oak Leaf
% See https://blogs.scientificamerican.com/guest-blog/how-to-draw-with-math/
% and also "leaf pile" on File Exchange
t=0:0.01:pi;
r=@rand;
c=@(f)cos(f*t);
s=@(f)sin(f*t);
hold
Current plot held
for i=1:300
x=.01*c(1).^9.*c(5).^10+s(2)/4.*(1-s(10).^2/2).*(1-(c(1).*c(3)).^8);
y=s(1).*(1-s(10).^2/5.*(.5+s(2).^2))-.5;
rotate(fill(r()*5+x,r()*5+y,r(),Linew=1),[0
0
1],r()*360);
end
axis equal off
colormap autumn
set(gca,Pos=[0
0
1
1])
Remix Tree