Personalize a line drawed by user

Hi, I’m looking for a solution on how to put a white border on a line

drawed by user, and also how can I make dissappar that line when the

user draw a new one.

Thanks! [import]uid: 76800 topic_id: 21583 reply_id: 321583[/import]

stroke?

having a senior moment, but you can create a line a pixel or x pixels width and then draw a line on top with the color you want.

look at removeSelf() to remove an object from memory.

local star = display.newLine( 0,-110, 27,-35 ) star:append( 105,-35, 43,16, 65,90, 0,45, -65,90, -43,15, -105,-35, -27,-35, 0,-110 ) star:setColor( 255, 102, 102, 255 ) star.width = 10 local star = display.newLine( 0,-110, 27,-35 ) star:append( 105,-35, 43,16, 65,90, 0,45, -65,90, -43,15, -105,-35, -27,-35, 0,-110 ) star:setColor( 255, 0,0 ) star.width = 4 [import]uid: 24 topic_id: 21583 reply_id: 85606[/import]

Lines cannot have outlines in any language or framework. WHat you will have to do is have a white line that is thicker, like 3/5/7 (odd number in width) and then draw the line on top of that that is 1/2/4 the width you want in the colour you want (this has to be 2 smaller than the white lines width)

you have a border …

remove the lines with removeSelf() , that’s how you erase them [import]uid: 3826 topic_id: 21583 reply_id: 85682[/import]