SMILING FROWNING FACE
Author |
Message |
snusnu
|
Posted: Fri May 26, 2006 12:01 pm Post subject: SMILING FROWNING FACE |
|
|
hello, i'm new on turing and i was wondering how would you make a smilie face that turns into a frown |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
TheOneTrueGod
![](http://www.drmcninja.com/images/mcninjab3.jpg)
|
Posted: Fri May 26, 2006 12:24 pm Post subject: (No subject) |
|
|
drawfillarc. Its in the turing help file. |
|
|
|
|
![](images/spacer.gif) |
jamonathin
![](http://compsci.ca/v3/uploads/user_avatars/57683465145f851a43dd9a.gif)
|
Posted: Fri May 26, 2006 12:24 pm Post subject: (No subject) |
|
|
Since you're new to Turing, this can be a little complicated for you. You may want to look into Arcs and For Loops. Provide us with some of your code and we can help you further . |
|
|
|
|
![](images/spacer.gif) |
beforelast
|
Posted: Fri May 26, 2006 7:57 pm Post subject: (No subject) |
|
|
here
code: | %Draw.Arc (x, y, xRadius, yRadius : int, initialAngle, finalAngle, Color : int)
var angle1 : int := 190
var angle2 : int := 350
var angle3 : int := 90
var angle4 : int := 90
procedure face
drawoval (200, 200, 100, 100, black)
drawline (220, 220, 220, 260, black)
drawline (180, 220, 180, 260, black)
end face
loop
cls
face
Draw.Arc (200, 200, 50, 50, angle1, angle2, 1)
angle1 := angle1 + 1
angle2 := angle2 - 1
delay (20)
View.Update
setscreen ("offscreenonly")
exit when angle1 = 250
end loop
cls
loop
cls
face
Draw.Arc (200, 100, 50, 50, angle3, angle4, 1)
angle3 := angle3 - 1
angle4 := angle4 + 1
delay (20)
View.Update
setscreen ("offscreenonly")
exit when angle3 = 30
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
jamonathin
![](http://compsci.ca/v3/uploads/user_avatars/57683465145f851a43dd9a.gif)
|
Posted: Fri May 26, 2006 8:54 pm Post subject: (No subject) |
|
|
Posting something like this teaches him nothing, anyone can post an answer. It's the research and the trial and error that teaches. And besides, this is more than likely for a school assignment - which we do not provide answers for. Please do not post such replies in the future. |
|
|
|
|
![](images/spacer.gif) |
beforelast
|
Posted: Sat May 27, 2006 10:35 pm Post subject: (No subject) |
|
|
soz, i never really thought about that. i did sadly spend a good amount of time on this.
lol
take it down if oyu want (any mod) |
|
|
|
|
![](images/spacer.gif) |
Guest
|
Posted: Sun May 28, 2006 9:19 am Post subject: (No subject) |
|
|
jamonathin wrote: Posting something like this teaches him nothing, anyone can post an answer. It's the research and the trial and error that teaches. And besides, this is more than likely for a school assignment - which we do not provide answers for. Please do not post such replies in the future.
I learn by trial and error, and by looking at others code to see how it works. I prefer looking at someones code because then you learn much faster than researching on your own, and I try to cut their code down in size with my own methods. |
|
|
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
Posted: Sun May 28, 2006 9:31 am Post subject: (No subject) |
|
|
vahnx wrote: I learn by trial and error, and by looking at others code to see how it works. I prefer looking at someones code because then you learn much faster than researching on your own, and I try to cut their code down in size with my own methods.
I'm quite sure you already understand the point of not posting code, but just to clarify for others...
Yes, you can learn from seeing other people's code. At times, it is the only way to learn. However, to provide code for every minor whim is not conducive to anyone's education. The sad truth is that a large proportion of people visiting this site will drop by, get the help they need, then leave - ne'er to be heard of again. This is just how things work. Of these people, not too many of them would be willing to take the time to sit through some else's code and learn its intricacies. Instead, a mark will be waiting at the other end of the table, and they will be only too happy to oblige. As you can see, the fault lies in both the provider and user of such code.
Therefore, to engage the purpose of this site, we don't provide code for homework assignments for the above reasons (not to mention the unethical nature associated with plagarism). This is not to say we never provide code...there have been many instances where a discussion has been built around a theoretical question leading to several people posting their own interpretations - thus leading to their overall advancement of knowledge.
At the end of the day, that is what we're about here. Helping people to learn, and in the process learning ourselves. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|