
-----------------------------------
apomb
Fri Feb 04, 2005 3:10 am

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 :? 

% 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 ""
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


-----------------------------------
Tony
Fri Feb 04, 2005 9:07 am


-----------------------------------
moved to 

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 :lol:

-----------------------------------
cycro1234
Fri Feb 04, 2005 12:17 pm


-----------------------------------
That's nifty, I like it :D

-----------------------------------
person
Fri Feb 04, 2005 2:09 pm


-----------------------------------
That's nifty, I like it 

u do realize that it wasnt done intentionally...right?

-----------------------------------
apomb
Fri Feb 04, 2005 6:24 pm


-----------------------------------
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 ...  :?

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
