I need help with my program
Author |
Message |
TuringHelp
|
Posted: Thu May 06, 2010 7:52 am Post subject: I need help with my program |
|
|
What is it you are trying to achieve?
I am trying to make a quarter of a circle in the corner of the screen flash in a colour, then the seccond quarter of the screen to do the same thing, etc
What is the problem you are having?
The prolem I am having is that when the first circle comes and the second comes beside it the first does not leave
Describe what you have tried to solve this problem
Basially I want the first quarter of the screen flash with a colour then the second flash, then 3rd and 4th) Check the code to see what i mean
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
<Answer Here>
Turing: |
<View.Set ("graphics")
const midx := maxx div 2
const midy := maxy div 2
Draw.FillArc (midx, midy, midx, midy, 0, 90, 1)
delay(500)
cls
const midx1 := maxx div 2
const midy1 := maxy div 2
Draw.FillArc (midx1, midy1, midx1, midy1, 0, 900, 1)
>
|
Please specify what version of Turing you are using
<Answer Here> |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: Thu May 06, 2010 11:12 am Post subject: RE:I need help with my program |
|
|
In the first draw, your angles are correct: draw from 0 degrees to 90 degrees.
In the second draw, your angles are wrong: you have it drawing from 0 degrees to 900 degrees (which works out to 180 degrees). The first quadrant DOES disappear, but you're drawing the same thing right over it with the second command. You want the second draw to draw from 90 degrees to 180 degrees. |
|
|
|
|
![](images/spacer.gif) |
|
|