PDA

View Full Version : Ying yang symbol



11-08-2005, 06:24 PM
I'm using turtle graphics to display a ying yang symbol, and while the shape is perfect, I have no clue how to fill in one half of the symbol and one small inner circle as black. Any suggestions? Thanks!

Azdo
11-09-2005, 01:48 AM
Originally posted by <Andy>:
I'm using turtle graphics to display a ying yang symbol, and while the shape is perfect, I have no clue how to fill in one half of the symbol and one small inner circle as black. Any suggestions? Thanks!Could you elaborate on what do you mean by turtle graphics?

11-09-2005, 06:45 AM
yeah, News to me too...
http://en.wikipedia.org/wiki/Turtle_graphics

jide
11-09-2005, 07:04 AM
Everyone knows logo-turtle, 'everyone' started with that before entering Basic, then C... However in those old times, I was really young, and never heard about filling shapes, just turn left 90, go front 120 and so on...

But what's the link with GL ?

john
11-09-2005, 06:35 PM
> But what's the link with GL ?

glBegin(GL_TURTLE);
glVertex2f(0, 0);
glForwardf(100.0);
glRotateTurtlef(50);
glForwardf(50;0);
glEnd();

// etc.

hey, i think it's an awesome idea. let's abandon this triangle rendering malacky in favour of line drawing!

jide
11-09-2005, 10:45 PM
:D

I think that's an incredible idea, and a promising project :cool: