I have the function
Hypocycloid[{R_, r_}, θ_] := {(R - r) Cos[θ] +
r Cos[θ (R - r)/r], (R - r) Sin[θ] -
r Sin[θ (R - r)/r]}
For, e.g., R=5 and r=1
Legended[Show[{ParametricPlot[
Hypocycloid[{5, 1}, θ], {θ, 0, Pi/3},
PlotStyle -> Red],
ParametricPlot[
Hypocycloid[{5, 1}, θ], {θ, Pi/3, 2 Pi/3 - 0.001},
PlotStyle -> {Blue}],
ParametricPlot[
Hypocycloid[{5, 1}, θ], {θ, 2 Pi/3, 3 Pi/3 - 0.001},
PlotStyle -> {Green}],
ParametricPlot[
Hypocycloid[{5, 1}, θ], {θ, 3 Pi/3, 4 Pi/3 - 0.001},
PlotStyle -> {Orange}],
ParametricPlot[
Hypocycloid[{5, 1}, θ], {θ, 4 Pi/3, 5 Pi/3 - 0.001},
PlotStyle -> {Pink}],
ParametricPlot[
Hypocycloid[{5, 1}, θ], {θ, 5 Pi/3, 6 Pi/3 - 0.001},
PlotStyle -> {Magenta}]}, Axes -> None, Frame -> True,
PlotRange -> All],
SwatchLegend[{Red, Blue, Green, Orange, Pink,
Magenta}, {"0≤θ<π/3",
"π/3≤θ<2π/3",
"2π/3≤θ<π",
"π≤θ<4π/3",
"4π/3≤θ<5π/3",
"5π/3≤θ<2π"}]]
Is it possible to take the same output with something quicker?
Something like different PlotStyle
(s) according to the given PlotRange
(s).
Thanks.