• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# Untitled

a guest Jun 15th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. documentclass[demo]{standalone}
2. usepackage[dvipsnames]{xcolor}
3. usepackage{tikz}
4. usetikzlibrary{decorations.pathmorphing}
5. usetikzlibrary{decorations.markings}
7.
8. usetikzlibrary{arrows,shapes}
9. usetikzlibrary{shapes.geometric,calc}
10. usetikzlibrary{backgrounds,fit}
12. usetikzlibrary{snakes}
13. usetikzlibrary{decorations.text}
14. usetikzlibrary{positioning}
15. begin{document}
16. begin{tikzpicture}[scale=0.05]
17.    draw[fill=black] (0,0) circle (100cm);
18.    draw[fill=black] (0,75) ellipse (100cm and 25cm);
19.    draw[fill=black] (0,-100) ellipse (60cm and 10cm);
20.    draw[fill=gray] (0,75) ellipse (80cm and 15cm);
21. draw[fill=Goldenrod, draw=orange] (70,75) ellipse (7.5cm and 4cm);
22.
23. % Gold
24. pgfmathsetmacro{a}{80}
25. pgfmathsetmacro{b}{15}
26. foreach Angle in {-180,...,180}{
27. pgfmathsetmacro{R}{a*b/(sqrt((a*sin(Angle))^2+(b*cos(Angle))^2))}
28. pgfmathsetmacro{xRand}{random(0,10)}
29. pgfmathsetmacro{yRand}{random(0,25)}
30. draw[fill=Goldenrod, draw=orange,
31. shift={(xRand,75+yRand)}
32. ]  (Angle:R)  ellipse (7.5cm and 4cm);
33. }
34. end{tikzpicture}
35. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top