Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[demo]{standalone}
- usepackage[dvipsnames]{xcolor}
- usepackage{tikz}
- usetikzlibrary{decorations.pathmorphing}
- usetikzlibrary{decorations.markings}
- usetikzlibrary{calc, fadings, shadings}
- usetikzlibrary{arrows,shapes}
- usetikzlibrary{shapes.geometric,calc}
- usetikzlibrary{backgrounds,fit}
- usetikzlibrary{shadows}
- usetikzlibrary{snakes}
- usetikzlibrary{decorations.text}
- usetikzlibrary{positioning}
- begin{document}
- begin{tikzpicture}[scale=0.05]
- draw[fill=black] (0,0) circle (100cm);
- draw[fill=black] (0,75) ellipse (100cm and 25cm);
- draw[fill=black] (0,-100) ellipse (60cm and 10cm);
- draw[fill=gray] (0,75) ellipse (80cm and 15cm);
- draw[fill=Goldenrod, draw=orange] (70,75) ellipse (7.5cm and 4cm);
- % Gold
- pgfmathsetmacro{a}{80}
- pgfmathsetmacro{b}{15}
- foreach Angle in {-180,...,180}{
- pgfmathsetmacro{R}{a*b/(sqrt((a*sin(Angle))^2+(b*cos(Angle))^2))}
- pgfmathsetmacro{xRand}{random(0,10)}
- pgfmathsetmacro{yRand}{random(0,25)}
- draw[fill=Goldenrod, draw=orange,
- shift={(xRand,75+yRand)}
- ] (Angle:R) ellipse (7.5cm and 4cm);
- }
- end{tikzpicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement