• Remix
  • Share
  • New Entry

on 22 Nov 2023
  • 8
  • 11
  • 0
  • 0
  • 411
drawframe(1);
Write your drawframe function below
function drawframe(f)
rng(1,"twister")
axis([ 0 1 0.1 1])
axis square
set(gca,'Color',[0.53, 0.81, 0.98],'Ytick',[],'Xtick',[])
hold on
center=[0.75 0.75];
radius=0.15;
rectangle('Position', [center - radius, 2 * radius, 2 * radius], ...
'Curvature', [1, 1], ...
'FaceColor', [1, 1-f*0.0072, 0]);
fill(linspace(0,1,500),0.3*rand(500,1)+0.02,'g')
rng(1,"twister")
plot(rand(100,1),rand(100,1)-f/50,'.','color',[0.5, 0.7, 1.0],'markersize',3);
hold off
end
Animation
Remix Tree