Posted: 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
Sponsor Sponsor
Dan
Posted: Tue Oct 07, 2003 8:39 pm Post subject: (No subject)
put "__________________________"
no i am just kidding
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
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Rudiger
Posted: Tue Oct 07, 2003 8:50 pm Post subject: (No subject)
thanx man you just gave me a a+ or a high mark
PaddyLong
Posted: Tue Oct 07, 2003 9:27 pm Post subject: (No subject)
or to be really cool put repeat("_", 10)
Dan
Posted: Wed Oct 08, 2003 11:11 am Post subject: (No subject)
why not just do
loop
put "_"..
end loop
never ending lines
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Blade
Posted: Wed Oct 08, 2003 12:41 pm Post subject: (No subject)
could also use locate(row,col) to move yer line around
Tony
Posted: Wed Oct 08, 2003 1:18 pm Post subject: (No 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
Posted: Wed Oct 08, 2003 10:18 pm Post subject: (No subject)
GOD YOU PEOPLE HAVE WAY TOO MUCH TIME ON YOUR HANDS!!!
hackman
Posted: Thu Oct 09, 2003 10:11 am Post subject: (No subject)
You forgot one
Vertical line:
code:
for k:1..20
put "|"
end for
Blade
Posted: Thu Oct 09, 2003 1:40 pm Post subject: (No 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