Computer Science Canada Box with Curved Corners |
Author: | gothic-sorceress [ 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? |
Author: | S_Grimm [ 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 |
Author: | Tony [ 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. |
Author: | S_Grimm [ 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. |