Graphics, Figures & Tablesdraw a pokeball

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
danielvelizv
Posts: 45
Joined: Wed May 25, 2016 7:04 am

draw a pokeball

Post by danielvelizv »

Hello my friends, i'm a beginner in this software and I wanna draw a pokeball (pokemon) the problem is the lower part has to be in white color and I don't know to achieve this. Any advice to solve my problem?

PD: I want to show you a picture but I don't know how to do that, so, can any of you run this program and tell me the request I need please? ;)

Code: Select all

Code, edit and compile here:
\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{tikz}
\usetikzlibrary{shadings}
\pagestyle{empty}
\usepackage[left=3cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\begin{document}
\begin{tikzpicture}
\draw [shading=ball, ball color=red] (0,1.498) circle (2.3cm); %pic [behind path]
\draw (-2.295,1.35) arc (180:360:2.295 and 1);
\filldraw[opaque, black, fill=white, line width=1pt] (0, 0.35) circle (0.22cm);
\end{tikzpicture}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

draw a pokeball

Post by Stefan Kottwitz »

Here is the output of your code:
ball.png
ball.png (24.98 KiB) Viewed 2300 times
In the forum, you can click "Upload attachment" (below the post text edit field) to upload an image as attachment. Choose the file, click the button "Add the file". Then you can see the attachment below the text. You can click "Place inline" to place an image within the text instead of below, like I did here.

Btw. it is good to crop an image, using the pdfcrop tool or the standalone class, and to convert it to PNG. Or simply make a screenshot and post it here as PNG image. Seeing images is fun and makes understanding quick and easy.

Stefan
LaTeX.org admin
Post Reply