Computer Science Canada

Extremely glitchy line proggy

Author:  apomb [ 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

Author:  Tony [ Fri Feb 04, 2005 9:07 am ]
Post 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

Author:  cycro1234 [ Fri Feb 04, 2005 12:17 pm ]
Post subject: 

That's nifty, I like it Very Happy

Author:  person [ Fri Feb 04, 2005 2:09 pm ]
Post subject: 

Quote:
That's nifty, I like it


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

Author:  apomb [ Fri Feb 04, 2005 6:24 pm ]
Post 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


: