• Remix
  • Share
  • New Entry

on 26 Oct 2021
  • 5
  • 32
  • 0
  • 0
  • 208
for i=1:10
R=randi([1 10]);
r=randi([1 10]);
d=randi([1 10]);
t=linspace(0,2*pi*lcm(r,R),1e5);
x=(R-r)*cos(t)+d*cos((R-r)/R*t);
y=(R-r)*sin(t)-d*sin((R-r)/R*t);
plot(y,x,'linewidth',randi([1 5])); hold on;
end
axis equal off;
Image
Remix Tree