• Remix
  • Share
  • New Entry

on 7 Oct 2021
  • 6
  • 71
  • 4
  • 0
  • 178
Compute and display a Hypotrochoid.
R1=.2; R2=.9; R3=.7;
a1=linspace(0, 9*pi*2, 500);
a2=a1*R1/R2;
X=(R1-R2)*cos(a1)-cos(a2)*R3;
Y=(R1-R2)*sin(a1)-sin(a2)*R3;
C=hypot(X,Y);
fill(X,Y,C);
axis('off','equal');
colormap(flipud(turbo))
Remix Tree
Load full remix tree