Box with Curved Corners
Author |
Message |
gothic-sorceress
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
S_Grimm
![](http://compsci.ca/v3/uploads/user_avatars/18926424384e6d86e5cf4d6.jpg)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
S_Grimm
![](http://compsci.ca/v3/uploads/user_avatars/18926424384e6d86e5cf4d6.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
|
|