選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

38 行
1.1KB

  1. \tikzset{
  2. pulley/.pic=
  3. {
  4. \draw (0,0) -- (-0.3,0);
  5. \draw (-0.3,-0.2) circle [radius=0.2];
  6. \draw (-0.3,-0.2) circle [radius=0.04];
  7. },
  8. whiteboard/.pic=
  9. {
  10. \draw[line width=1mm, color=gray, fill=lightgray!70] (0,0) rectangle (4,2.5);
  11. },
  12. masspoint/.pic=
  13. {
  14. \draw[fill=white] (0,0) circle (0.2) node {m};
  15. },
  16. rail/.pic=
  17. {
  18. \draw[fill=gray!60] (0,0.05) rectangle (4,-0.05);
  19. },
  20. scara/.pic=
  21. {
  22. \def \wall {0.05};
  23. \draw[fill=gray!60,rounded corners] ({-\x-\wall},{-\y-\wall}) rectangle ({\x+\wall},{\y+\wall});
  24. \draw[fill=lightgray!70,rounded corners] ({-\x},{-\y+\wall}) rectangle ({\x},{\y});
  25. \begin{scope}[shift={(-\x/2,-\y+\wall/2)},rotate=\alpha, x=7mm, y=7mm]
  26. \draw[fill=red](-0.1,-0.1) rectangle (1.6,0.1);
  27. \begin{scope}[shift={(1.65,0)}]
  28. \begin{scope}[rotate=\beta]
  29. \draw[fill=red](-0.1,-0.1) rectangle (1.4,0.1);
  30. \draw[fill=red](1.4,0) circle (0.2);
  31. \end{scope}
  32. \end{scope}
  33. \end{scope}
  34. }
  35. }