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

Username:   Password: 
 RegisterRegister   
 Extremely glitchy line proggy
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
apomb




PostPosted: Fri Feb 04, 2005 3:10 am   Post subject: Extremely glitchy line proggy

here is something that made my computer draw lines not even in the box specified for drawing ... check it out, let me know if it does the same thing on your computers Confused

code:
% The "truly F***ed" program
% Draws lines to random points (not even in drawing square!!)
setscreen ("graphics")
var x, y, c, b : int
const centerx := maxx div 2
const centery := maxy div 2
Text.Locate (14, 1)
put "<------------------drag mouse in this box, observe your screen----------------->"
drawbox (0, 210, maxx, 170, red)
loop
    mousewhere (x, y, b)
    randint (c, 0, maxcolor)
    drawline (x, y, x div centerx div y, y * centery + x, c)
end loop
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Feb 04, 2005 9:07 am   Post subject: (No subject)

moved to [Turing Help]

so... what point is x div centerx div y, y * centery + x suppost to represent?

I don't know, but y * centery is defenatly going to be a large number Laughing
cycro1234




PostPosted: Fri Feb 04, 2005 12:17 pm   Post subject: (No subject)

That's nifty, I like it Very Happy
person




PostPosted: Fri Feb 04, 2005 2:09 pm   Post subject: (No subject)

Quote:
That's nifty, I like it


u do realize that it wasnt done intentionally...right?
apomb




PostPosted: Fri Feb 04, 2005 6:24 pm   Post subject: (No subject)

can i just ask y this is in Turing help i wasnt asking for help ... i was merely stating that it was extremely glitchy and that it draws outside of the screen, i know that the numbers are very large ... i fully realise the "niftyness" of it as well, so please explain y it is in "help" now ... Confused

Tony : the point x div centerx div y, y * centery + x is an arbitrary point that i was experimenting with ... absolutely no pre-determined point, just screwing around with turing and its weird ness ... sheesh
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  [ 5 Posts ]
Jump to:   


Style:  
Search: