Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Wave Effect Program
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
flamemaster89




PostPosted: Fri Nov 11, 2005 9:21 pm   Post subject: Wave Effect Program

%well heres the code

setscreen ("graphics:max;max,nobuttonbar")
const pi := 1
var temp,w,z,c,cc:int:=0


loop
randint(c,0,103)
randint(cc,103,255)

for x : 1 .. maxx
for y : 1 .. maxy
const angle := y * pi / 6


if sin (angle)-cos (angle)>x/maxy
then
drawdot (x, y, c)
else
drawdot (x, y, cc)
end if
end for
end for

for decreasing x : maxx ..1
for decreasing y : maxy ..1
const angle := y * pi / 6


if sin (angle)-cos (angle)>x/maxy
then
drawdot (x, y, cc)
else
drawdot (x, y, c)
end if
end for
end for
end loop
Sponsor
Sponsor
Sponsor
sponsor
iker




PostPosted: Sun Nov 13, 2005 2:21 pm   Post subject: (No subject)

i don't understand, what is it supposed to do. btw, pretty good looking
Flikerator




PostPosted: Sun Nov 13, 2005 7:43 pm   Post subject: (No subject)

Pretty neat I guess...What is the point of this program though?
Cervantes




PostPosted: Sun Nov 13, 2005 9:53 pm   Post subject: (No subject)

No point. Random trigonometric functions.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: