[Help]drawLine
Moderators: Shine, Insert_witty_name
[Help]drawLine
How do you write this code "nil image:drawLine(x0, y0, x1, y1, [color = black])"
Re: [Help]drawLine
the x0, and y0 are your starting points adn x1, and y1 are your end points.N00b wrote:How do you write this code "nil image:drawLine(x0, y0, x1, y1, [color = black])"
so if you want a line from 10, 10 to 100, 100 you go
image:drawLine(10, 10, 100, 100, [color = black])
00100000 01101001 01101101 00100000 01110010 01101001 01100111 01101000 01110100 00100000 01100010 01100101 01101000 01101001 01101110 01100100 00100000 01111001 01101111 01110101 00100001
that I know but wen i try to run my script
it's gives me a error! can someone explan how to setup a full working script!?
Code: Select all
white = Color.new(255,255,255)
image:drawLine(10, 10, 100, 100, white)