Advertisement
Guest User

Untitled

a guest
Jul 4th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. psylxa[X_] :=
  2. {ColorConvert[
  3. Hue[Arg[X]/(2*Pi), 1,
  4. 1], "RGB"][[1]],
  5. ColorConvert[
  6. Hue[Arg[X]/(2*Pi), 1,
  7. 1], "RGB"][[2]],
  8. ColorConvert[
  9. Hue[Arg[X]/(2*Pi), 1,
  10. 1], "RGB"][[3]]};
  11. tsylxe[X_] := RGBColor[
  12. X[[1]], X[[2]], X[[3]]];
  13.  
  14. Show[Table[ParametricPlot3D[
  15. {(c + Cos[t])*Cos[a*t],
  16. (c + Cos[t])*Sin[a*t],
  17. Sin[t]}, {t, -4*r*Pi +
  18. (8*Pi*r*n)/20, -4*r*Pi +
  19. (8*Pi*r*(n + 1))/20},
  20. PlotRange -> All,
  21. Boxed -> False, Mesh ->
  22. None, PlotStyle ->
  23. Directive[Opacity[0.4],
  24. tsylxe[psylxa[
  25. Exp[n*I]]]]],
  26. {n, 1, 20}]]
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement