Advertisement
Matthen

Cos Roll

Feb 25th, 2016
1,613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Manipulate[
  2. Module[{\[Theta]},
  3. \[Theta] = Pi Sin[2 Pi t];
  4. Show[
  5. Graphics[{
  6. {RGBColor[0.85, 0.88, 0.9], EdgeForm[RGBColor[0.65, 0.68, 0.7]],
  7. Disk[{\[Theta], 0}, 1]},
  8. {RGBColor[0.65, 0.68, 0.7],
  9. Disk[{\[Theta], 0} + 0.5 {Sin[-\[Theta]], Cos[-\[Theta]]}, 0.5]},
  10. {RGBColor[0.5, 0.1, 0.1],
  11. Line[Accumulate[{{\[Theta], 0},
  12. 0.5 {Sin[-\[Theta]], Cos[-\[Theta]]},
  13. 0.5 {Sin[\[Theta]], Cos[\[Theta]]}}]]}
  14. }, PlotRange -> {{-Pi - 1.1, Pi + 1.1}, {-1.1, 1.1}},
  15. ImagePadding -> 10],
  16. Plot[Cos[tt], {tt, -Pi - 0.01, \[Theta]},
  17. PlotStyle -> RGBColor[0.2, 0.1, 0.1]]
  18. ]
  19. ]
  20. ,
  21. {t, 0, 1}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement