WHATDOTCOLOR GUY!
Author |
Message |
Boarder16
![](http://members.lycos.co.uk/paulbian/floppy.gif)
|
Posted: Tue Dec 30, 2003 1:06 am Post subject: WHATDOTCOLOR GUY! |
|
|
Hey, i forget your name on compsci, but why do they/ you call yourself whatdotcolor warrior ?? I unno what whatdotcolor is lol
Matt! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
poly
|
Posted: Tue Dec 30, 2003 12:19 pm Post subject: (No subject) |
|
|
hey since I feel very lazy this morning here it is out of the wonderful reference from turing:
Description: The whatdotcolor function is used to determine the color number of the specified pixel. The alternate spelling is whatdotcolour.
Example: This program draws a line which bounces off the edges of the screen and makes a beep when it finds a pixel that has already been colored.
dont be afraid to try the example out cause its one out of few that work!
Woah its almost 12:30...that isnt too morningish now is it |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Tue Dec 30, 2003 2:12 pm Post subject: (No subject) |
|
|
lol, actually the example doesn't work!
code: |
setscreen ("graphics")
var x, y : int := 0
var dx, dx : int := 1
loop
if whatdotcolor (x, y) not= 0 then
sound (400, 50)
end if
drawdot (x, y, 1)
x := x + dx
y := y + dy
if x = 0 or x = maxx then
dx := -dx
end if
if y = 0 or y = maxy then
dy := -dy
end if
end loop
|
they declared dx twice instead of declaring dy... you know you're smart when you try to teach somebody using code you haven't tested. let's all have a round of applause for holtsoft...
*dead silence*
ok nevermind then. |
|
|
|
|
![](images/spacer.gif) |
|
|