Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{tikz}
  3. begin{document}
  4.  
  5. begin{tikzpicture}
  6.  
  7. shade[shading=ball, ball color=gray,draw,opacity=.7] (-2.5,0) .. controls (0,1) and (.5,0.5) .. (.5,0)
  8. .. controls (.5,-.5) and (0,-1) .. (-2.5,0);
  9.  
  10. shade[shading=ball, ball color=gray,draw,opacity=.7] (2.5,0) .. controls (.5,1) and (-.5,0.5) .. (-.5,0)
  11. .. controls (-.5,-.5) and (.5,-1) .. (2.5,0);
  12.  
  13. shade[shading=ball, ball color=gray,draw,opacity=.7] (-2.5,0) .. controls (-3.5,2.5) and (-3,3) .. (-2.5,3)
  14. .. controls (-2,3) and (-1.5,2.5) .. (-2.5,0);
  15.  
  16. shade[shading=ball, ball color=gray,draw,opacity=.7] (-2.5,0) .. controls (-3.5,-2.5) and (-3,-3) .. (-2.5,-3)
  17. .. controls (-2,-3) and (-1.5,-2.5) .. (-2.5,0);
  18.  
  19. shade[shading=ball, ball color=gray,draw,opacity=.7] (-2.5,0) .. controls (-4,0.5) and (-5,0.83) .. (-4.5,1.5)
  20. .. controls (-4,2.17) and (-3.5,1.31) .. (-2.5,0);
  21.  
  22. shade[shading=ball, ball color=gray,draw,opacity=.7] (-2.5,0) .. controls (-4,-0.5) and (-5,-0.83) .. (-4.5,-1.5)
  23. .. controls (-4,-2.17) and (-3.5,-1.31) .. (-2.5,0);
  24.  
  25. shade[shading=ball, ball color=gray,draw,opacity=.7] (2.5,0) .. controls (-3.5+5,2.5) and (-3+5,3) .. (2.5,3)
  26. .. controls (-2+5,3) and (-1.5+5,2.5) .. (2.5,0);
  27.  
  28. shade[shading=ball, ball color=gray,draw,opacity=.7] (2.5,0) .. controls (-3.5+5,-2.5) and (-3+5,-3) .. (2.5,-3)
  29. .. controls (-2+5,-3) and (-1.5+5,-2.5) .. (2.5,0);
  30.  
  31. shade[shading=ball, ball color=gray,draw,opacity=.7] (2.5,0) .. controls (4,0.5) and (5,0.83) .. (4.5,1.5)
  32. .. controls (4,2.17) and (3.5,1.31) .. (2.5,0);
  33.  
  34. shade[shading=ball, ball color=gray,draw,opacity=.7] (2.5,0) .. controls (4,-0.5) and (5,-0.83) .. (4.5,-1.5)
  35. .. controls (4,-2.17) and (3.5,-1.31) .. (2.5,0);
  36.  
  37. shade[shading=ball, ball color=blue,opacity=0.6] (4.5,1.5) circle (0.5);
  38.  
  39. shade[shading=ball, ball color=blue,opacity=0.6] (4.5,-1.5) circle (.5);
  40.  
  41. shade[shading=ball, ball color=blue,opacity=0.6] (-4.5,-1.5) circle (.5);
  42.  
  43. shade[shading=ball, ball color=blue,opacity=0.6] (-4.5,1.5) circle (.5);
  44.  
  45. end{tikzpicture}
  46.  
  47. begin{tikzpicture}
  48.  
  49. shade[shading=ball, ball color=gray,draw,opacity=.7] (-2.5,0) .. controls (0,1) and (.5,0.5) .. (.5,0)
  50. .. controls (.5,-.5) and (0,-1) .. (-2.5,0);
  51.  
  52. shade[shading=ball, ball color=gray,draw,opacity=.7] (2.5,0) .. controls (.5,1) and (-.5,0.5) .. (-.5,0)
  53. .. controls (-.5,-.5) and (.5,-1) .. (2.5,0);
  54.  
  55.  
  56. shade[shading=ball, ball color=gray,draw,opacity=.7] (-2.5,0) .. controls (-4,0.5) and (-5,0.83) .. (-4.5,1.5)
  57. .. controls (-4,2.17) and (-3.5,1.31) .. (-2.5,0);
  58.  
  59. shade[shading=ball, ball color=gray,draw,opacity=.7] (-2.5,0) .. controls (-4,-0.5) and (-5,-0.83) .. (-4.5,-1.5)
  60. .. controls (-4,-2.17) and (-3.5,-1.31) .. (-2.5,0);
  61.  
  62.  
  63. shade[shading=ball, ball color=gray,draw,opacity=.7] (2.5,0) .. controls (4,0.5) and (5,0.83) .. (4.5,1.5)
  64. .. controls (4,2.17) and (3.5,1.31) .. (2.5,0);
  65.  
  66. shade[shading=ball, ball color=gray,draw,opacity=.7] (2.5,0) .. controls (4,-0.5) and (5,-0.83) .. (4.5,-1.5)
  67. .. controls (4,-2.17) and (3.5,-1.31) .. (2.5,0);
  68.  
  69. shade[shading=ball, ball color=blue,opacity=0.6] (4.5,1.5) circle (0.5);
  70.  
  71. shade[shading=ball, ball color=blue,opacity=0.6] (4.5,-1.5) circle (.5);
  72.  
  73. shade[shading=ball, ball color=blue,opacity=0.6] (-4.5,-1.5) circle (.5);
  74.  
  75. shade[shading=ball, ball color=blue,opacity=0.6] (-4.5,1.5) circle (.5);
  76.  
  77.  
  78. shade[shading=ball, ball color=black,draw,opacity=.7] (-2.5,0) .. controls (-3.5,2.5) and (-3,3) .. (-2.5,3)
  79. .. controls (0,2) .. (2.5,3)
  80. .. controls (3,3) and (3.5,2.5) .. (2.5,0)
  81. .. controls (1.5,1) .. (0,1)
  82. .. controls (-2,1) .. (-2.5,0);
  83.  
  84.  
  85. shade[shading=ball, ball color=black,draw,opacity=.7] (-2.5,0) .. controls (-3.5,-2.5) and (-3,-3) .. (-2.5,-3)
  86. .. controls (0,-2) .. (2.5,-3)
  87. .. controls (3,-3) and (3.5,-2.5) .. (2.5,-0)
  88. .. controls (1.5,-1) .. (0,-1)
  89. .. controls (-2,-1) .. (-2.5,-0);
  90. end{tikzpicture}
  91.  
  92. end{document}
  93.  
  94. foreach i in {-4.5,4.5}
  95. foreach j in {-1.5,1.5}
  96. shade[ball color=blue,opacity=0.6] (i,j) circle (.5) node{H};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement