
-----------------------------------
Rudiger
Tue Oct 07, 2003 8:27 pm

Who can tell me how to make a line
-----------------------------------
i need someone to tell me how to make a line.  I don't want someone saying jsut put     
put "******************************************************"
i need a code

-----------------------------------
Dan
Tue Oct 07, 2003 8:39 pm


-----------------------------------
put "__________________________"  :twisted: 

no i am just kidding  :P  

the line comand is somthing like this:


drawline(0,0,100,100, red)


where it is  drawline(x1, y1, x2, y2, color)

also Draw.Line wroks the same way

-----------------------------------
Rudiger
Tue Oct 07, 2003 8:50 pm


-----------------------------------
thanx man you just gave me a a+ or a high mark :D

-----------------------------------
PaddyLong
Tue Oct 07, 2003 9:27 pm


-----------------------------------
or to be really cool put repeat("_", 10)

-----------------------------------
Dan
Wed Oct 08, 2003 11:11 am


-----------------------------------
why not just do

loop
    put "_"..
end loop

never ending lines  :shock:

-----------------------------------
Blade
Wed Oct 08, 2003 12:41 pm


-----------------------------------
could also use locate(row,col) to move yer line around

-----------------------------------
Tony
Wed Oct 08, 2003 1:18 pm


-----------------------------------
well while we're on the topic of useless sujestions for making lines

loop
Draw.Line(Rand.Int(0,maxx),Rand.Int(0,maxy),Rand.Int(0,maxx),Rand.Int(0,maxy),Rand.Int(0,255))
end loop
  :lol:

-----------------------------------
Mazer
Wed Oct 08, 2003 3:28 pm


-----------------------------------
the best way to draw a line:

for i : 1 .. 100
    drawdot (i, i, 7)
end for


-----------------------------------
Tony
Wed Oct 08, 2003 3:54 pm


-----------------------------------
who said that the line must be straight?

for i:1..maxx
Draw.Dot(i,round(cos(i))+round(maxy/2),black)
end for
 :lol:

-----------------------------------
naoki
Wed Oct 08, 2003 6:01 pm


-----------------------------------
i think there's like undocumented functions in drawline like drawthickline or drawdashedline. and in those you specify the thickness of the line.

-----------------------------------
Rudiger
Wed Oct 08, 2003 9:42 pm


-----------------------------------
This line has to be straight 
a haziontal line :x 
like this ___________________
i just want a line to divide up 2 section in the porgram :wink:

-----------------------------------
Tony
Wed Oct 08, 2003 10:05 pm


-----------------------------------
well PaddyLong already answered your question then...

put repeat("_", 10)


-----------------------------------
who cares?
Wed Oct 08, 2003 10:18 pm


-----------------------------------
GOD YOU PEOPLE HAVE WAY TOO MUCH TIME ON YOUR HANDS!!!  :lol:

-----------------------------------
hackman
Thu Oct 09, 2003 10:11 am


-----------------------------------
You forgot one
Vertical line:

for k:1..20
put "|"
end for

-----------------------------------
Blade
Thu Oct 09, 2003 1:40 pm


-----------------------------------
no... if you want to divide the screen in half... do this

drawline(0,maxy div 2,maxx,maxy div 2,black)

okay, all it does is draw a line... the first two numbers being the x,y coordinates of the one end of the line, then the next two numbers are the x,y coordinates of the second part of the line, then the last one can be a colour name or a colour number. so its really
drawline(x1,y1,x2,y2,black)

ex: drawline(0,50,100,50,black)

0,50 - xy coordinate of the one end of the line
100,50 - xy coordinate of the other end
black - colour

since both y's are 50 it will be a straight horizontal line

-----------------------------------
krishon
Sat Oct 11, 2003 10:05 am


-----------------------------------
no we just want to be better than other ppl...and shut them all down :D

-----------------------------------
Andy
Sat Oct 11, 2003 2:29 pm


-----------------------------------
this is what swat do in their free time?

-----------------------------------
Tony
Sat Oct 11, 2003 2:47 pm


-----------------------------------
this is what swat do in their free time?
yes, we think up all the clever ways of drawing a line in turing  :lol:

-----------------------------------
Mazer
Sat Oct 11, 2003 3:01 pm


-----------------------------------
ok, i came up with another one. and don't worry about clear screen, this line is permanent!

materials:
-ruler
-knife (exacto knife or some other really sharp edge)

procedure:
1 - put the ruler against your screen at the position and angle desired for your line
2 - cut the screen surface along the edge of the ruler using your knife
3 - open turing
4 - type:

put ""

5 - make sure the blank run window is positioned under the line

now nobody will know the difference!
just make sure that if you have to hand this in as an assignment, that the teacher uses the correct monitor.

-----------------------------------
Tony
Sat Oct 11, 2003 3:21 pm


-----------------------------------
another way, that is less damaging to the equipmet is the following:
(it also works on any monitor)

1 - write any program in turing that executes... it doesnt matter what... as long as it doesnt generate any errors.

put ""
 is a good example

2 - get teacher to run your compiled program (hide all your special code... it is too good to be destributed freely)

3 - ask your teacher is that's Billy G. walking outside the classroom.

4 - when your teacher turns around in disbelive that M$ CEO is actually in your school, you grab a black marker and slash a line across the screen.

5 - when the teacher turns back to the screen, you just say "he must have passes already, but look at my awesome line"

 :lol:

-----------------------------------
Mazer
Sat Oct 11, 2003 3:35 pm


-----------------------------------
meh, i think i like mine better.

ps: that Billy G. is always causing a ruckus, isn't he?

-----------------------------------
Dan
Sun Oct 12, 2003 11:27 am


-----------------------------------
ok, i came up with another one. and don't worry about clear screen, this line is permanent!

materials:
-ruler
-knife (exacto knife or some other really sharp edge)

procedure:
1 - put the ruler against your screen at the position and angle desired for your line
2 - cut the screen surface along the edge of the ruler using your knife
3 - open turing
4 - type:

put ""

5 - make sure the blank run window is positioned under the line

now nobody will know the difference!
just make sure that if you have to hand this in as an assignment, that the teacher uses the correct monitor.


That whold shure wrok well on a LCD, i can just see it now. Some crazy guy acualy trys this and has a LCD, the LC's come poring out fire the computer and porbly any one near it, lol. (good way to stop the cops from geting your info on your hd). also whould probly end in a calse action law sute agested compsci.ca for give poleop this idea  :P

-----------------------------------
Mazer
Sun Oct 12, 2003 2:19 pm


-----------------------------------
damnit dan, now you got me all curious!

**walks off in search of an LCD, knife in hand**

-----------------------------------
Dan
Mon Oct 13, 2003 10:32 pm


-----------------------------------
damnit dan, now you got me all curious!

**walks off in search of an LCD, knife in hand**

oh shit

**strats looking thourgth phone book for a cheap Lawyer**

-----------------------------------
Rudiger
Tue Oct 14, 2003 8:17 pm


-----------------------------------
OK i had it, you guys are going around people LCD screens opening them up and stuff.... Jezz.... Have you all ment my new freaind Billy G. :lol: 

***kicks everyone in the ball ***
***high-fives Billy G.***

-----------------------------------
krishon
Mon Oct 20, 2003 7:43 pm


-----------------------------------
that one wuz pretty bad...lol

-----------------------------------
Tony
Mon Oct 20, 2003 10:11 pm


-----------------------------------
that one wuz pretty bad...
so is your spamming krishon :lol:
