Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Drawarc question?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
revangrey




PostPosted: Sun Jan 18, 2009 7:17 pm   Post subject: Drawarc question?

Of every turing command there is only one that has frustrated me to no end.

This command is drawarc.

I have no clue how to use drawarc and I need it to do two things: draw eyebrows for my snowman,
and draw curtains for my house.

the code for my snowman face :

code:
%face
        drawfilloval (590, 300, 3, 3, black) %Left eye
        drawfilloval (610, 300, 3, 3, black) %Right eye
        drawoval (600, 290, 3, 3, black)     %Nose
        drawline (619, 275, 582, 275, black) %Mouth


I plan to make the snowman raise and lower his eyebrows, and if anyone has any ideas on how to make the curtains open and close, and the eyebrows raise and lower without going at a ridiculous speed(this is part of a much larger program) please say so.

Any and all help is appreciated, thanks in advance!
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sun Jan 18, 2009 7:34 pm   Post subject: RE:Drawarc question?

to make the brows move up & down slower, use a real counter, and increment it by say, .1 every loop. The make the draw the eyebrow at x, round (y).
revangrey




PostPosted: Sun Jan 18, 2009 7:37 pm   Post subject: Re: Drawarc question?

thanks for the quick reply, but I still don't know how to draw an arc to the dimensions I want

the best I can get is something about 1/3 the size of the snowman head and the arc is on its side at that...

If you could explain how to use the drawarc command that would be greatly appreciated.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: