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

Username:   Password: 
 RegisterRegister   
 Cool Star Array (Graphic Visualization)
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
the_short1




PostPosted: Wed Jan 14, 2004 7:44 pm   Post subject: Cool Star Array (Graphic Visualization)

Visuals are fun, i have a realy nice one but has pictures...
so i will make a Installer for it soon...
% Kevin Folz, AKA the_short1
% Program to endlessly draw stars at random location,color,size
colorback (black)
cls
var blah,hah : array 1 .. 500 of int
loop
for i : 1 .. 500
randint (blah(i),1,maxx)
end for
for i : 1 .. 500
randint (hah(i),1,maxy)
end for
for i : 1..500
delay (50)
drawfillstar (blah(i),hah(i),blah(i+5),hah(i+5),blue)
drawfillstar (hah(i),blah(i),hah(i+5),blah(i+5),red)
drawfillstar (blah(i),blah(i),hah(i+5),hah(i+5),green)
drawfillstar (hah(i),blah(i),blah(i+5),hah(i+5),yellow)
end for
end loop
Sponsor
Sponsor
Sponsor
sponsor
Thuged_Out_G




PostPosted: Thu Jan 15, 2004 8:16 pm   Post subject: (No subject)

the colors arent really random....but, nice program none the less Razz
the_short1




PostPosted: Tue Jan 20, 2004 8:11 pm   Post subject: (No subject)

Yea instead of randomizing for the whole program it just randomizes 200 colors and 200 locations and replays them again and again... this was one of my first attemps of Arays.... i have one without an array...meh..
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  [ 3 Posts ]
Jump to:   


Style:  
Search: