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

Username:   Password: 
 RegisterRegister   
 Box with Curved Corners
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
gothic-sorceress




PostPosted: Fri Sep 26, 2008 8:03 am   Post subject: Box with Curved Corners

Im supposed to make a box with curved corners in Turing for school, using drawline and drawarc, but i cant get the edges of the box and the arcs to match up, or get the arcs to be in the right place.
Any suggestions?
Sponsor
Sponsor
Sponsor
sponsor
S_Grimm




PostPosted: Fri Sep 26, 2008 8:30 am   Post subject: RE:Box with Curved Corners

draw.line (x,y,x1,y1, red)
draw.arc (x1,y1,x2,y2, red)
draw.line (x2,y2,x3,y3, red)
draw.arc (x3,y3,x4,y4,red)

Theres The Pattern. I'm sure that it is fairly ovious... If not, ask your teacher
edit: mistake in formulas
Tony




PostPosted: Fri Sep 26, 2008 9:32 am   Post subject: RE:Box with Curved Corners

A\V -- are you sure you are using Draw.Arc correctly? I thought the Arc was just a segment of an ellipse, cut off at certain angles.

@gothic-sorceress -- Try using Draw.Oval instead of the Arc at first; it's the same thing, but you get to see all of it, and it might be easier to figure how things work from there. Since you are drawing a box, you know you have to make the cuts at 90 degree angles.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
S_Grimm




PostPosted: Fri Sep 26, 2008 7:30 pm   Post subject: RE:Box with Curved Corners

tony, i know it not right, but it gives the geneeral idea.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: