2d graphics - drawing a vescica piscis in Python
Lie
Lie.1296 at gmail.com
Tue Jun 17 17:36:59 EDT 2008
On Jun 18, 2:45 am, Terrence Brannon <metap... at gmail.com> wrote:
> Hello, I have written a program to draw a vescica piscis <http://
> en.wikipedia.org/wiki/Vesica_piscis>
>
> from turtle import *
>
> def main():
> setup(width=400, height=400)
>
> r = 50
> color("black")
> circle(r)
> color("white")
> forward(r)
> color("black")
> circle(r)
> x = raw_input('please enter a string:')
>
> if __name__ == '__main__':
> main()
>
> ... but I would like the following:
>
> 1 - I dont like how the bottom of the first circle is not complete
> 2 - I would like for the left circle to be filled with verticle lines
> and the right circle to be filled with horizontal lines, so that the
> vescica piscis is cross-hatched.
>
> And finally, is turtle the "best" option for what I'm doing? pyCairo
> looked a bit hard to get going with, but very powerful. sping looked a
> bit alpha/beta.
For an alternative to turtle, you might want to see PIL (Python
Imaging Library) or perhaps pygame.
More information about the Python-list
mailing list