Re: fill color cylinder

Mark Yagnatinsky <[email protected]> Sun, 11 Dec 2016 18:26:00 -0500
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <CAPbNvUw2BoY=JnoVM38yXNDrAQM7jBiGhNQY8b084mJpv-MvQA@mail.gmail.com>
A cylinder has 3 sides (top, bottom, and the round side).  Maybe someone
here has a better idea, but my suggestion is this:
Since ipe is a 2D program, try to treat each side separately.  This also
gives you a bit more flexibility in coloring.
So, you can already color the top and bottom, since they are circles.
All that remains is trace out the outline of the last side, which is
currently implicit.  That is, you want the following shape:
Line segment, semicircle, line sement, semicircle.
Or, in XML as spoken by ipe:
<path stroke="black">
176 640 m
16 0 0 16 192 640 208 640 a
208 576 l
16 0 0 16 192 576 176 576 a
h
</path>
Does that help?

On Sun, Dec 11, 2016 at 1:18 PM, Roberto D <[email protected]> wrote:

> Is it possible to draw a cylinder (I did with 2 deformed circles and 2
> segments) and the fill it wit a color?
> Thank you
>
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
>
>

_______________________________________________
Ipe-discuss mailing list
Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
http://lists.science.uu.nl/mailman/listinfo/ipe-discuss