It looks like you're new here. If you want to get involved, click one of these buttons!
for y=0,2 do local shape = Shape.new() shape:setLineStyle(1,0x0000ff) shape:beginPath() shape:moveTo(y*100+10,y) shape:lineTo(y*100+90,y) shape:endPath() local t = TextField.new(nil, "y=" .. y) t:setPosition(y*100+50-t:getWidth()/2,10) shape:addChild(t) stage:addChild(shape) end for x=0,4 do local shape = Shape.new() shape:setLineStyle(1,0xff0000) shape:beginPath() shape:moveTo(x,x*100+10) shape:lineTo(x,x*100+90) shape:endPath() local t = TextField.new(nil, "x=" .. x) t:setPosition(10, x*100+50-t:getWidth()/2+10) shape:addChild(t) stage:addChild(shape) end |
Likes: gorkem
Comments
Likes: ndoss