Computer Science Canada

Who can tell me how to make a line

Author:  Rudiger [ Tue Oct 07, 2003 8:27 pm ]
Post subject:  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

Author:  Dan [ Tue Oct 07, 2003 8:39 pm ]
Post subject: 

put "__________________________" Twisted Evil

no i am just kidding Razz

the line comand is somthing like this:

code:

drawline(0,0,100,100, red)


where it is drawline(x1, y1, x2, y2, color)

also Draw.Line wroks the same way

Author:  Rudiger [ Tue Oct 07, 2003 8:50 pm ]
Post subject: 

thanx man you just gave me a a+ or a high mark Very Happy

Author:  PaddyLong [ Tue Oct 07, 2003 9:27 pm ]
Post subject: 

or to be really cool put repeat("_", 10)

Author:  Dan [ Wed Oct 08, 2003 11:11 am ]
Post subject: 

why not just do

loop
put "_"..
end loop

never ending lines Shocked

Author:  Blade [ Wed Oct 08, 2003 12:41 pm ]
Post subject: 

could also use locate(row,col) to move yer line around

Author:  Tony [ Wed Oct 08, 2003 1:18 pm ]
Post subject: 

well while we're on the topic of useless sujestions for making lines
code:

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
Laughing

Author:  Mazer [ Wed Oct 08, 2003 3:28 pm ]
Post subject: 

the best way to draw a line:
code:

for i : 1 .. 100
    drawdot (i, i, 7)
end for

Author:  Tony [ Wed Oct 08, 2003 3:54 pm ]
Post subject: 

who said that the line must be straight?
code:

for i:1..maxx
Draw.Dot(i,round(cos(i))+round(maxy/2),black)
end for
Laughing

Author:  naoki [ Wed Oct 08, 2003 6:01 pm ]
Post subject: 

i think there's like undocumented functions in drawline like drawthickline or drawdashedline. and in those you specify the thickness of the line.

Author:  Rudiger [ Wed Oct 08, 2003 9:42 pm ]
Post subject: 

This line has to be straight
a haziontal line Mad
like this ___________________
i just want a line to divide up 2 section in the porgram Wink

Author:  Tony [ Wed Oct 08, 2003 10:05 pm ]
Post subject: 

well PaddyLong already answered your question then...
code:

put repeat("_", 10)

Author:  who cares? [ Wed Oct 08, 2003 10:18 pm ]
Post subject: 

GOD YOU PEOPLE HAVE WAY TOO MUCH TIME ON YOUR HANDS!!! Laughing

Author:  hackman [ Thu Oct 09, 2003 10:11 am ]
Post subject: 

You forgot one
Vertical line:
code:

for k:1..20
put "|"
end for

Author:  Blade [ Thu Oct 09, 2003 1:40 pm ]
Post subject: 

no... if you want to divide the screen in half... do this

code:
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

Author:  krishon [ Sat Oct 11, 2003 10:05 am ]
Post subject: 

no we just want to be better than other ppl...and shut them all down Very Happy

Author:  Andy [ Sat Oct 11, 2003 2:29 pm ]
Post subject: 

this is what swat do in their free time?

Author:  Tony [ Sat Oct 11, 2003 2:47 pm ]
Post subject: 

dodge_tomahawk wrote:
this is what swat do in their free time?

yes, we think up all the clever ways of drawing a line in turing Laughing

Author:  Mazer [ Sat Oct 11, 2003 3:01 pm ]
Post subject: 

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:
code:

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.

Author:  Tony [ Sat Oct 11, 2003 3:21 pm ]
Post subject: 

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.
code:

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"

Laughing

Author:  Mazer [ Sat Oct 11, 2003 3:35 pm ]
Post subject: 

meh, i think i like mine better.

ps: that Billy G. is always causing a ruckus, isn't he?

Author:  Dan [ Sun Oct 12, 2003 11:27 am ]
Post subject: 

Mazer wrote:
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:
code:

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 Razz

Author:  Mazer [ Sun Oct 12, 2003 2:19 pm ]
Post subject: 

damnit dan, now you got me all curious!

**walks off in search of an LCD, knife in hand**

Author:  Dan [ Mon Oct 13, 2003 10:32 pm ]
Post subject: 

Mazer wrote:
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**

Author:  Rudiger [ Tue Oct 14, 2003 8:17 pm ]
Post subject: 

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. Laughing

***kicks everyone in the ball ***
***high-fives Billy G.***

Author:  krishon [ Mon Oct 20, 2003 7:43 pm ]
Post subject: 

that one wuz pretty bad...lol

Author:  Tony [ Mon Oct 20, 2003 10:11 pm ]
Post subject: 

krishon wrote:
that one wuz pretty bad...

so is your spamming krishon Laughing


: